/* ==========================================================================
   INA — Гинекологија & Акушерство
   Design tokens
   ========================================================================== */

:root {
  --white: #ffffff;
  --ink: #1c1c1e;
  --ink-soft: #3a3a3d;
  --red: #e2001a;
  --red-dark: #b5000f;
  --grey: #6e6e73;
  --grey-light: #f4f4f5;
  --blush: #fbf4f4;
  --border: #ececec;

  --font-display: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1180px;
  --radius: 6px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand img {
  height: 46px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 34px;
}

.main-nav a:not(.lang-flag) {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--red);
  transition: color 0.15s ease;
  white-space: nowrap;
}

.main-nav a:not(.lang-flag):hover {
  color: var(--red-dark);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 30px;
  border-left: 1px solid var(--border);
}

.lang-flag {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid transparent;
  opacity: 0.55;
  transition: opacity 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.lang-flag svg {
  width: 100%;
  height: 100%;
}

.lang-flag:hover {
  transform: translateY(-1px);
  opacity: 0.85;
}

.lang-flag.active {
  opacity: 1;
  border-color: var(--red);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  background-image: linear-gradient(100deg, rgba(10, 8, 9, 0.82) 0%, rgba(10, 8, 9, 0.55) 42%, rgba(10, 8, 9, 0.15) 68%, rgba(10, 8, 9, 0.05) 100%), url('../images/home-page-cover.jpg');
  background-size: cover;
  background-position: center 30%;
  color: var(--white);
  padding: 80px 0 130px;
}

.hero-content {
  max-width: 560px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0.85;
  margin-bottom: 22px;
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 26px;
  height: 2px;
  background: var(--red);
  margin-right: 12px;
  vertical-align: middle;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 22px;
  letter-spacing: -0.01em;
}

.hero p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.88);
  max-width: 460px;
  margin-bottom: 34px;
}

.btn {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 15px 30px;
  border-radius: var(--radius);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn-outline {
  border: 1.5px solid var(--white);
  color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--ink);
  transform: translateY(-1px);
}

.btn-solid {
  background: var(--red);
  color: var(--white);
  border: 1.5px solid var(--red);
  width: 100%;
  text-align: center;
}

.btn-solid:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

/* ==========================================================================
   Services — signature overlapping card row
   ========================================================================== */

.services {
  position: relative;
  margin-top: -92px;
  padding-bottom: 90px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 24px 48px -20px rgba(28, 28, 30, 0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.service-card__head {
  background: var(--red);
  color: var(--white);
  padding: 22px 20px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  min-height: 90px;
  display: flex;
  align-items: center;
}

.service-card__body {
  padding: 22px 20px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card__price {
  text-align: center;
  margin-bottom: 6px;
}

.service-card__price .num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--ink);
  display: block;
}

.service-card__price .unit {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--grey);
}

.service-card__subtitle {
  font-size: 12px;
  color: var(--grey);
  text-align: center;
  margin-bottom: 14px;
}

.service-list {
  list-style: none;
  flex: 1;
  margin-bottom: 20px;
}

.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-soft);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.service-list li:last-child {
  border-bottom: none;
}

.service-list .check {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  margin-top: 1px;
}

.service-list .check circle {
  stroke: var(--red);
  fill: none;
}

.service-list .check path {
  stroke: var(--red);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--blush);
  border-top: 1px solid var(--border);
  padding: 30px 0;
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

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

.footer-brand img {
  height: 34px;
}

.footer-meta {
  font-size: 12px;
  color: var(--grey);
  text-align: right;
}

.footer-meta a {
  color: var(--red);
  font-weight: 600;
}

.footer-meta p {
  margin: 0;
}

.footer-meta .credit {
  margin-top: 4px;
  opacity: 0.75;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    inset: 84px 0 0 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 32px;
    gap: 28px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .main-nav ul {
    flex-direction: column;
    gap: 22px;
  }

  .lang-switch {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 20px;
    width: 100%;
  }

  .hero {
    min-height: auto;
    padding: 56px 0 110px;
    background-position: 70% center;
  }

  .services {
    margin-top: -70px;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 20px;
  }

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

  .site-footer .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-meta {
    text-align: left;
  }
}

/* ==========================================================================
   Active nav state
   ========================================================================== */

.main-nav a.active:not(.lang-flag) {
  color: var(--red-dark);
  box-shadow: 0 2px 0 0 var(--red);
  padding-bottom: 5px;
}

/* ==========================================================================
   Inner page hero (About / Price list / Contact)
   ========================================================================== */

.page-hero {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: center;
  background-image: linear-gradient(100deg, rgba(226, 0, 26, 0.88) 0%, rgba(178, 10, 10, 0.82) 55%, rgba(28, 28, 30, 0.6) 100%), url('../images/home-page-cover.jpg');
  background-size: cover;
  background-position: center 20%;
  color: var(--white);
  padding: 56px 0;
}

.page-hero .eyebrow {
  opacity: 0.9;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   Content sections (About / Price list)
   ========================================================================== */

.section {
  padding: 72px 0;
}

.section-tight {
  padding: 56px 0 0;
}

.lede {
  max-width: 760px;
  font-size: 18px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.lede strong {
  color: var(--ink);
}

.section-heading {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--red);
  margin-bottom: 24px;
}

.facts-panel {
  background: var(--blush);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 36px 40px;
  margin-top: 20px;
}

.facts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 40px;
  list-style: none;
}

.facts-grid li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  color: var(--ink-soft);
  padding: 14px 0;
  border-bottom: 1px solid rgba(28, 28, 30, 0.08);
}

.facts-grid li:nth-last-child(-n+1) {
  border-bottom: none;
}

.facts-grid .check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.facts-grid .check circle {
  stroke: var(--red);
  fill: none;
}

.facts-grid .check path {
  stroke: var(--red);
}

.facts-grid strong {
  color: var(--ink);
}

/* ==========================================================================
   Service overview columns (Price list page)
   ========================================================================== */

.services-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 50px;
}

.services-overview h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 16px;
}

.services-overview ul {
  list-style: none;
}

.services-overview li {
  position: relative;
  padding: 8px 0 8px 20px;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.services-overview li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 17px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}

/* ==========================================================================
   Price table
   ========================================================================== */

.price-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: 0 24px 48px -28px rgba(28, 28, 30, 0.28);
}

table.price-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
  background: var(--white);
}

.price-table thead th {
  background: var(--red);
  color: var(--white);
  text-align: left;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 16px 22px;
}

.price-table thead th.num,
.price-table td.num {
  text-align: right;
}

.price-table tbody td {
  padding: 13px 22px;
  font-size: 14px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.price-table tbody td:first-child {
  white-space: normal;
  color: var(--ink);
  font-weight: 500;
}

.price-table tbody tr:nth-child(even) {
  background: var(--blush);
}

.price-table tbody tr:last-child td {
  border-bottom: none;
}

/* ==========================================================================
   CTA band
   ========================================================================== */

.cta-band {
  background: var(--red);
  color: var(--white);
  padding: 56px 0;
  text-align: left;
}

.cta-band .eyebrow {
  color: rgba(255, 255, 255, 0.85);
}

.cta-band .eyebrow::before {
  background: var(--white);
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  font-weight: 800;
  margin: 10px 0 14px;
}

.cta-band a.cta-link {
  font-size: 14px;
  font-weight: 700;
  border-bottom: 2px solid var(--white);
  padding-bottom: 3px;
}

/* ==========================================================================
   Contact page
   ========================================================================== */

.contact-block {
  background: var(--red);
  color: var(--white);
  padding: 80px 0;
}

.contact-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.contact-columns h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
}

.contact-columns p {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.92);
}

.contact-columns a {
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   Responsive additions
   ========================================================================== */

@media (max-width: 900px) {
  .services-overview {
    grid-template-columns: 1fr;
    gap: 30px;
  }

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

  .facts-grid li {
    border-bottom: 1px solid rgba(28, 28, 30, 0.08) !important;
  }

  .contact-columns {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 640px) {
  .facts-panel {
    padding: 28px 22px;
  }

  .section {
    padding: 50px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
