/* ==================== VARIABLES ==================== */
:root {
  --color-primary: #0077B6;
  --color-primary-light: #00B4D8;
  --color-primary-dark: #005F8A;
  --color-white: #FFFFFF;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-text-muted: #999999;
  --color-bg-light: #F8F9FA;
  --color-bg-white: #FFFFFF;
  --color-border: #E0E7EE;
  --color-accent: #E63946;
  --color-success: #2D6A4F;
  --color-weekend: #E63946;
  --color-today-bg: #E3F2FD;
  --color-today-border: #0077B6;

  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-hover: 0 8px 24px rgba(0, 119, 182, 0.15);

  --transition: 0.3s ease;
  --header-height: 80px;
  --header-height-compact: 60px;

  --container-max: 1200px;
  --container-padding: 20px;
}

/* ==================== RESET ==================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul, ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

address {
  font-style: normal;
}

/* ==================== UTILITIES ==================== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: 80px 0;
}

.section__title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 12px;
}

.section__subtitle {
  font-size: 1.1rem;
  color: var(--color-text-light);
  text-align: center;
  margin-bottom: 40px;
}

/* Alternating section backgrounds */
.schedule,
.map {
  background-color: var(--color-bg-light);
}

.services,
.advantages,
.contacts {
  background-color: var(--color-bg-white);
}

.advantages__subheading {
  margin-top: 48px;
  margin-bottom: 32px;
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  line-height: 1.4;
}

.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn--primary:hover {
  background-color: var(--color-primary-dark);
  box-shadow: var(--shadow-hover);
}

.btn--full {
  width: 100%;
}

/* ==================== HEADER ==================== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--color-white);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.header--compact {
  box-shadow: var(--shadow-md);
}

.header--compact .header__inner {
  padding-top: 10px;
  padding-bottom: 10px;
}

.header--compact .header__slogan {
  display: none;
}

.header--compact .header__logo-icon {
  width: 28px;
  height: 28px;
}

.header--compact .header__logo-text {
  font-size: 1.1rem;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  transition: padding var(--transition);
}

.header__brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header__logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.header__logo-icon svg {
  width: 100%;
  height: 100%;
}

.header__logo-text {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
}

.header__slogan {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-left: 32px;
}

.header__nav-list {
  display: flex;
  gap: 24px;
}

.header__nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  position: relative;
  padding: 4px 0;
}

.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width var(--transition);
}

.header__nav-link:hover {
  color: var(--color-primary);
}

.header__nav-link:hover::after {
  width: 100%;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header__phone {
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text);
  white-space: nowrap;
}

.header__phone:hover {
  color: var(--color-primary);
}

.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
}

.header__burger-line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition);
}

.header__burger[aria-expanded="true"] .header__burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__burger[aria-expanded="true"] .header__burger-line:nth-child(2) {
  opacity: 0;
}

.header__burger[aria-expanded="true"] .header__burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==================== SERVICES TABLE ==================== */
.services__table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.services__table {
  min-width: 500px;
}

.services__table thead tr {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.services__table th {
  padding: 16px 20px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: left;
}

.services__table th:last-child {
  text-align: right;
  white-space: nowrap;
}

.services__category td {
  padding: 12px 20px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-primary);
  background-color: var(--color-bg-light);
  border-bottom: 1px solid var(--color-border);
}

.services__item td {
  padding: 12px 20px;
  border-bottom: 1px solid var(--color-border);
  transition: background-color var(--transition);
}

.services__item:nth-child(even) td {
  background-color: var(--color-bg-light);
}

.services__item:hover td {
  background-color: var(--color-today-bg);
}

.services__item-name {
  padding-left: 32px;
  color: var(--color-text);
}

.services__item-price {
  text-align: right;
  font-weight: 500;
  white-space: nowrap;
  color: var(--color-text);
}

/* ==================== PARALLAX HERO ==================== */
.parallax-hero {
  position: relative;
  width: 100%;
  min-height: 500px;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.parallax-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 95, 138, 0.85) 0%, rgba(0, 180, 216, 0.7) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.parallax-hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 20px;
  max-width: 800px;
}

.parallax-hero__title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.parallax-hero__subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* ==================== SCHEDULE ==================== */
.schedule__wrapper {
  max-width: 600px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.schedule__table {
  width: 100%;
}

.schedule__table td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--color-border);
  transition: background-color var(--transition);
}

.schedule__table tr:last-child td {
  border-bottom: none;
}

.schedule__day {
  font-weight: 500;
  color: var(--color-text);
}

.schedule__time {
  text-align: right;
  font-weight: 500;
  white-space: nowrap;
  color: var(--color-text);
}

.schedule__time--closed {
  color: var(--color-weekend);
}

.schedule__weekend .schedule__day {
  color: var(--color-weekend);
}

.schedule__table tr:nth-child(even) td {
  background-color: var(--color-bg-light);
}

.schedule__today {
  background-color: var(--color-today-bg) !important;
  border-left: 4px solid var(--color-today-border);
}

.schedule__today td {
  font-weight: 600;
  color: var(--color-primary);
}

/* ==================== ADVANTAGES ==================== */
.advantages__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.advantage-card {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid var(--color-border);
}

.advantage-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-primary-light);
}

.advantage-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  color: var(--color-primary);
}

.advantage-card__icon svg {
  width: 100%;
  height: 100%;
}

.advantage-card__title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 12px;
}

.advantage-card__desc {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ==================== AWARDS ==================== */
.awards__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.award-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid var(--color-border);
}

.award-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.award-card__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background-color: var(--color-bg-light);
  min-height: 200px;
  gap: 12px;
}

.award-card__placeholder-icon {
  font-size: 3rem;
  opacity: 0.6;
}

.award-card__placeholder-text {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.award-card__img {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
  transition: transform var(--transition);
}

.award-card__img:hover {
  transform: scale(1.03);
}

/* ==================== LIGHTBOX ==================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  padding: 20px;
}

.lightbox--open {
  opacity: 1;
  visibility: visible;
}

.lightbox__close {
  position: absolute;
  top: 16px;
  right: 24px;
  font-size: 2.5rem;
  color: var(--color-white);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  transition: opacity var(--transition);
  z-index: 1;
}

.lightbox__close:hover {
  opacity: 0.7;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}

/* ==================== CONTACTS ==================== */
.contacts__inner {
  display: flex;
  justify-content: center;
}

.contacts__info {
  max-width: 600px;
  width: 100%;
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.contacts__org {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.contacts__address {
  margin-bottom: 24px;
}

.contacts__address-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 8px;
}

.contacts__address-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
}

.contacts__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contacts__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
}

.contacts__item-label {
  font-weight: 600;
  color: var(--color-text-light);
  min-width: 60px;
}

.contacts__link {
  color: var(--color-primary);
  font-weight: 500;
}

.contacts__link:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

.contacts__value {
  color: var(--color-text);
}

/* ==================== MAP ==================== */
.map__placeholder {
  width: 100%;
  min-height: 400px;
  background-color: var(--color-bg-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 32px;
  border: 1px solid var(--color-border);
}

.map__placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 400px;
  gap: 12px;
}

.map__placeholder-icon {
  font-size: 4rem;
  opacity: 0.6;
}

.map__placeholder-text {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text-light);
}

.map__placeholder-hint {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.map__directions {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.map__directions-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 16px;
}

.map__directions-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-light);
}

/* ==================== FOOTER ==================== */
.footer {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
  padding: 40px 0 24px;
}

.footer__inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.footer__docs-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer__docs-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  margin-bottom: 32px;
}

.footer__doc-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  transition: all var(--transition);
}

.footer__doc-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.footer__doc-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.footer__copyright {
  font-size: 0.85rem;
  opacity: 0.8;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* ==================== RESPONSIVE: 1024px ==================== */
@media (max-width: 1024px) {
  .section {
    padding: 60px 0;
  }

  .section__title {
    font-size: 1.75rem;
  }

  .advantages__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .awards__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .header__nav-list {
    gap: 16px;
  }

  .header__actions {
    gap: 12px;
  }
}

/* ==================== RESPONSIVE: 768px ==================== */
@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  .header__burger {
    display: flex;
  }

  .header__nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: var(--color-white);
    box-shadow: var(--shadow-md);
    padding: 20px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    z-index: 999;
  }

  .header__nav--open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .header__nav-list {
    flex-direction: column;
    gap: 16px;
  }

  .header__nav-link {
    font-size: 1.1rem;
    display: block;
    padding: 8px 0;
  }

  .header__slogan {
    display: none;
  }

  .header__actions {
    gap: 8px;
  }

  .section__title {
    font-size: 1.5rem;
  }

  .section__subtitle {
    font-size: 1rem;
  }

  .section {
    padding: 48px 0;
  }

  .advantages__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .advantage-card {
    padding: 24px 20px;
  }

  .awards__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .contacts__info {
    padding: 24px;
  }

  .footer__docs-list {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .footer__doc-link {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .parallax-hero {
    min-height: 350px;
    background-attachment: scroll;
  }

  .parallax-hero__title {
    font-size: 1.8rem;
  }

  .parallax-hero__subtitle {
    font-size: 1rem;
  }
}

/* ==================== RESPONSIVE: 480px ==================== */
@media (max-width: 480px) {
  :root {
    --container-padding: 16px;
  }

  .header__inner {
    padding: 12px 16px;
  }

  .header__logo-text {
    font-size: 1.1rem;
  }

  .header__phone {
    font-size: 0.9rem;
  }

  .section__title {
    font-size: 1.3rem;
  }

  .section {
    padding: 36px 0;
  }

  .services__table th,
  .services__table td {
    padding: 10px 14px;
    font-size: 0.9rem;
  }

  .services__item-name {
    padding-left: 20px;
  }

  .schedule__table td {
    padding: 12px 16px;
  }

  .awards__grid {
    grid-template-columns: 1fr;
  }

  .award-card__placeholder {
    min-height: 160px;
  }

  .contacts__org {
    font-size: 1.1rem;
  }

  .contacts__item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .map__placeholder-content {
    height: 300px;
  }

  .map__directions-text {
    font-size: 0.9rem;
  }
}
