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

/* Display font for the big titles: Impact where it is installed (Windows, macOS);
   phones have no Impact, so they get Oswald Bold — a similar condensed bold face. */
@font-face {
  font-family: 'FC Display';
  src: local('Impact'), url('../fonts/oswald-700-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
  font-display: swap;
}

@font-face {
  font-family: 'FC Display';
  src: local('Impact'), url('../fonts/oswald-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  font-display: swap;
}

:root {
  --header-h: 68px; /* Figma 84px − 20% (client revision) */
  --adminbar: 0px;
}

/* logged-in users: WordPress toolbar sits above the fixed header */
.admin-bar {
  --adminbar: 32px;
}

@media (max-width: 782px) {
  .admin-bar {
    --adminbar: 46px;
  }
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 20px;
  color: #fff;
  background-color: #434345;
}

body.is-locked {
  overflow: hidden;
}

img {
  display: block;
  /* photos can't be dragged out / long-pressed to save */
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
}

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

button {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

/* =========================================
   LAYOUT
   ========================================= */
/* Full-width layout: content starts 100px from the screen edge on any monitor
   (logo/footer text 50px), like the approved 1430px design. */
.container {
  margin: 0 auto;
  padding: 0 100px;
}

/* =========================================
   TYPOGRAPHY HELPERS
   ========================================= */
.section-title {
  font-size: 65px;
  font-weight: 700;
  letter-spacing: -1.3px;
  line-height: 1.044;
  text-transform: uppercase;
  margin-bottom: 50px;
}

.section-title--dark  { color: #181818; }
.section-title--light { color: #fff; }

/* =========================================
   HEADER
   ========================================= */
.header {
  position: fixed;
  top: var(--adminbar);
  left: 0;
  width: 100%;
  height: var(--header-h);
  background-color: #181818;
  z-index: 1000;
}

.header__inner {
  padding: 0 50px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Figma "image 4": 226×47 frame, image cropped (w 100%, h 162%, top -37.76%) */
.header__logo {
  position: relative;
  display: block;
  flex-shrink: 0;
  width: 226px;
  height: 47px;
  overflow: hidden;
}

.header__logo img {
  position: absolute;
  left: 0;
  top: -37.76%;
  width: 100%;
  height: 162%;
  max-width: none;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-left: auto;
  margin-right: 40px;
}

.header__nav a {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.header__nav a:hover {
  opacity: 0.7;
}

.header__burger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

/* Figma "vuesax/linear/menu": three 22.5px lines, 1.5px stroke, 6.25px apart */
.header__burger-lines {
  position: relative;
  display: block;
  width: 30px;
  height: 30px;
}

.header__burger-lines span {
  position: absolute;
  left: 3.75px;
  width: 22.5px;
  height: 1.5px;
  border-radius: 1px;
  background: #fff;
  transition: transform 0.3s ease, opacity 0.2s ease, top 0.3s ease;
}

.header__burger-lines span:nth-child(1) { top: 8px; }
.header__burger-lines span:nth-child(2) { top: 14.25px; }
.header__burger-lines span:nth-child(3) { top: 20.5px; }

.header__burger.is-active .header__burger-lines span:nth-child(1) { top: 14.25px; transform: rotate(45deg); }
.header__burger.is-active .header__burger-lines span:nth-child(2) { opacity: 0; }
.header__burger.is-active .header__burger-lines span:nth-child(3) { top: 14.25px; transform: rotate(-45deg); }

/* =========================================
   HERO
   ========================================= */
/* Opens full screen: the photo fills everything below the header */
.hero {
  position: relative;
  height: calc(100vh - var(--adminbar));
  height: calc(100svh - var(--adminbar));
  min-height: 560px;
  overflow: hidden;
  background-color: #434345;
}

.hero__bg {
  position: absolute;
  inset: var(--header-h) 0 0;
  overflow: hidden;
}

.hero__bg img {
  width: 104.67%;
  height: 126.25%;
  object-fit: cover;
  object-position: center center;
  position: absolute;
  top: -19.72%;
  left: -2.34%;
}

.hero__content {
  position: absolute;
  bottom: 35px;
  left: 0;
  right: 0;
  padding: 0 100px;
}

.hero__title {
  font-family: 'FC Display', Impact, 'Arial Black', sans-serif;
  font-size: 123px;
  font-weight: 400;
  line-height: 1.044;
  letter-spacing: -2.46px;
  text-transform: uppercase;
  color: #fff;
}

.hero__line {
  display: block;
}

.hero__line + .hero__line {
  margin-top: 10px;
}

/* =========================================
   ABOUT (WHITE BG)
   ========================================= */
.about {
  background-color: #fff;
  padding: 70px 0 62px;
}

.about__text-block {
  margin-bottom: 60px;
}

.about__heading {
  font-size: 65px;
  font-weight: 700;
  letter-spacing: -1.3px;
  line-height: 1.044;
  color: #181818;
  margin-bottom: 25px;
  max-width: 490px;
}

.about__desc {
  font-size: 20px;
  line-height: 23px;
  color: #181818;
  white-space: nowrap;
}

/* Stats */
.stats {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.stats__item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stats__item--center {
  align-items: center;
  text-align: center;
}

.stats__num {
  font-size: 65px;
  font-weight: 400;
  color: #181818;
  line-height: 75px;
}

.stats__lbl {
  font-size: 20px;
  color: #181818;
  margin-top: 13px;
  line-height: 23px;
}

.stats__divider {
  width: 1px;
  height: 47px;
  background-color: rgba(24, 24, 24, 0.25);
  flex-shrink: 0;
  margin-top: 44px;
}

/* =========================================
   PORTFOLIO (WHITE BG)
   ========================================= */
.portfolio {
  background-color: #fff;
  padding-bottom: 35px;
  box-shadow: 0 -1px 0 #fff; /* hides a sub-pixel seam under the white "about" block */
}

.portfolio .container {
  padding-bottom: 10px;
}

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}

/* Figma card photo 700×360 — keeps this proportion on any screen width */
.portfolio__img-wrap {
  width: 100%;
  aspect-ratio: 700 / 360;
  overflow: hidden;
  position: relative;
}

.portfolio__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  inset: 0;
  transition: transform 0.5s ease;
}

.portfolio__item:hover .portfolio__img-wrap img {
  transform: scale(1.04);
}

.portfolio__info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 15px 40px 0 60px;
  color: #181818;
}

.portfolio__item:nth-child(even) .portfolio__info {
  padding: 15px 60px 0 40px;
}

.portfolio__name {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 20px;
  text-transform: uppercase;
}

.portfolio__city {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 20px;
}

/* =========================================
   SERVICES (DARK BG)
   ========================================= */
.services {
  background-color: #434345;
  padding: 105px 0 70px;
}

.services .section-title,
.process .section-title {
  margin-bottom: 70px;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px 20px;
}

.services__item {
  background-color: #fff;
  border-radius: 20px;
  height: 80px;
  display: flex;
  align-items: center;
  padding: 0 25px;
}

.services__icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex-shrink: 0;
  margin: 0 24px 0 6px;
}

.services__item span {
  font-size: 20px;
  color: #0b0b0b;
  line-height: 23px;
}

/* =========================================
   PROCESS (DARK BG)
   ========================================= */
.process {
  background-color: #434345;
  padding: 0 0 70px;
}

/* Grid: 5 columns matching dot positions from Figma */
/* Dot positions (from container left): 0, 165, 401, 630, 821 out of 1230px */
.process__grid {
  display: grid;
  grid-template-columns: 165fr 236fr 229fr 191fr 409fr;
  /* 3 rows: top steps | timeline | bottom steps */
}

/* Top cells: steps 1, 3, 5 — vertically aligned to bottom */
.process__cell--top {
  padding-bottom: 24px;
  align-self: end;
}

/* Bottom cells: steps 2, 4 — vertically aligned to top */
.process__cell--bottom {
  padding-top: 24px;
  align-self: start;
}

.process__cell--empty {
  /* spacer */
}

/* Timeline row: spans all 5 columns */
.process__timeline {
  grid-column: 1 / 6;
  position: relative;
  height: 14px;
}

.process__timeline-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background-color: #fff;
  transform: translateY(-50%);
}

/* Dots: at the start of each column */
.process__dot {
  position: absolute;
  width: 14px;
  height: 14px;
  background-color: #fff;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}

/* Dot positions as % of total content width (1230px) */
.process__dot--1 { left: 0; }
.process__dot--2 { left: calc(165 / 1230 * 100%); }
.process__dot--3 { left: calc(401 / 1230 * 100%); }
.process__dot--4 { left: calc(630 / 1230 * 100%); }
.process__dot--5 { left: calc(821 / 1230 * 100%); }

.process__step-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 28px;
  color: #fff;
  white-space: nowrap;
  margin-bottom: 11px;
}

.process__step-text {
  font-size: 18px;
  color: #fff;
  line-height: 21px;
}

@media (min-width: 1101px) {
  .process__grid {
    grid-template-columns: minmax(0, 165fr) minmax(0, 236fr) minmax(0, 229fr) minmax(0, 191fr) minmax(0, 409fr);
    grid-template-rows: 127px 14px auto;
  }

  .process__cell--top {
    align-self: start;
    padding-bottom: 0;
  }

  .process__cell--bottom {
    padding-top: 54px;
  }

  .process__cell--1 .process__step-text { width: 357px; }
  .process__cell--2 .process__step-text { width: 421px; }
  .process__cell--3 .process__step-text { width: 377px; }
  .process__cell--4 .process__step-text { width: 435px; }
  .process__cell--5 .process__step-text { width: 409px; }
}

/* =========================================
   TEAM (WHITE BG)
   ========================================= */
.team {
  background-color: #fff;
  padding-top: 70px;
}

.team .container {
  margin-bottom: 0;
}

.team .section-title {
  margin-bottom: 60px;
}

.team__photo-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 1430 / 745;
}

.team__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  position: absolute;
  top: 0;
  left: 0;
}

.team__caption {
  position: absolute;
  top: 60px;
  right: 100px;
  max-width: 617px;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 23px;
  text-align: right;
}

/* =========================================
   COURSES (WHITE BG)
   ========================================= */
.courses {
  background-color: #fff;
  padding: 70px 0 90px;
}

.courses .section-title,
.contacts .section-title {
  margin-bottom: 60px;
}

/* text runs to the content edge of the site */
.courses__content {
  max-width: none;
}

.courses__content p {
  font-size: 20px;
  color: #181818;
  line-height: 23px;
}

.courses__content strong {
  font-weight: 700;
}

/* =========================================
   CONTACTS (DARK BG)
   ========================================= */
.contacts {
  background-color: #434345;
  padding-top: 70px;
}

/* Figma: info column 535 + gap 80, form 569 starts 615px from the content edge —
   kept the same on wide screens so the form stays next to the contacts */
.contacts__layout {
  display: grid;
  grid-template-columns: minmax(0, 535px) minmax(0, 569px);
  justify-content: start;
  gap: 80px;
  align-items: stretch;
}

/* Left: info */
.contacts__info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contacts__block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contacts__label {
  font-size: 22px;
  font-weight: 700;
  color: #718fc8;
}

.contacts__block p {
  font-size: 20px;
  color: #fff;
  line-height: 23px;
}

.contacts__block:first-child p {
  max-width: 429px;
}

.contacts__link {
  color: #718fc8;
  transition: opacity 0.2s;
}

.contacts__link:hover {
  opacity: 0.8;
}

/* Right: form */
.contacts__form-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contacts__form-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.044;
  color: #718fc8;
  letter-spacing: -0.44px;
  padding-left: 20px;
}

.form__field {
  position: relative;
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding: 16px 20px 10px;
}

.form__field input {
  flex: 1;
  height: 23px;
  padding: 0;
  background: transparent;
  border: none;
  outline: none;
  font-size: 20px;
  line-height: 23px;
  font-family: Arial, sans-serif;
  color: #fff;
  min-width: 0;
}

.form__field input::placeholder {
  color: #fff;
  opacity: 1;
}

.form__hint {
  position: absolute;
  top: 17px;
  font-size: 16px;
  line-height: 23px;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  pointer-events: none;
}

.form__field:nth-of-type(1) .form__hint { left: 63px; }
.form__field:nth-of-type(2) .form__hint { left: 107px; }

.form__field input:not(:placeholder-shown) + .form__hint {
  visibility: hidden;
}

.form__submit {
  margin-top: 45px;
  background-color: #718fc8;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  font-family: Arial, sans-serif;
  border: none;
  cursor: pointer;
  height: 59px;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Figma: text on the left, 30px inset */
  padding: 0 30px;
  width: 100%;
  transition: opacity 0.2s;
}

.form__submit:hover {
  opacity: 0.9;
}

/* hidden anti-spam field */
.form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__success,
.form__error {
  padding: 16px 20px;
  border-radius: 4px;
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.5;
}

.form__success {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
}

.form__error {
  background: rgba(220, 53, 69, 0.15);
  border: 1px solid rgba(220, 53, 69, 0.5);
  color: #ffaaaa;
}

/* Map (2GIS) */
.contacts__map {
  position: relative;
  margin-top: 55px;
  background: #e5e5e5;
}

.contacts__map-canvas {
  display: block;
  width: 100%;
  height: 468px;
  border: 0;
}

/* grey map like in the design */
.contacts__map-canvas {
  filter: grayscale(1);
}

/* =========================================
   MENU DRAWER — slides in from the right under the header,
   ~20% of the screen; the page stays visible behind it
   ========================================= */
.nav-backdrop {
  position: fixed;
  inset: calc(var(--header-h) + var(--adminbar)) 0 0;
  z-index: 998;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-backdrop.is-open {
  opacity: 1;
}

.mobile-nav {
  position: fixed;
  top: calc(var(--header-h) + var(--adminbar));
  right: 0;
  bottom: 0;
  z-index: 999;
  width: clamp(320px, 20vw, 440px);
  padding: 50px 50px 40px;
  background-color: #181818;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.35s ease, visibility 0s linear 0.35s;
}

.mobile-nav.is-open {
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.35s ease, visibility 0s;
}

.mobile-nav__links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.mobile-nav__link {
  font-size: 20px;
  line-height: 23px;
  color: #fff;
  transition: color 0.2s;
}

.mobile-nav__link:hover,
.mobile-nav__link:focus-visible {
  color: #718fc8;
}

.mobile-nav__contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 84px; /* one more line of space under the menu links */
  font-size: 16px;
  line-height: 20px;
  color: #fff;
}

/* city: regular weight, normal case, white — like the rest of the block */
.mobile-nav__contacts .mobile-nav__city {
  font-size: 16px;
  font-weight: 400;
  color: #fff;
}

.mobile-nav__contacts a {
  color: #fff;
  transition: color 0.2s;
}

.mobile-nav__contacts a:hover {
  color: #718fc8;
}

/* =========================================
   LIGHTBOX — full screen photo, arrows / keyboard ← →
   ========================================= */
[data-gallery] {
  cursor: zoom-in;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 10, 0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
  cursor: zoom-out;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease, visibility 0s;
}

.lightbox__stage {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100vw - 180px);
  height: calc(100vh - 100px);
}

.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: default;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.6);
}

.lightbox__nav,
.lightbox__close {
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.2s;
  cursor: pointer;
}

.lightbox__nav:hover,
.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox__nav {
  top: 50%;
  margin-top: -28px;
}

.lightbox__nav--prev { left: 30px; }
.lightbox__nav--next { right: 30px; }

.lightbox__nav::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
}

.lightbox__nav--prev::before { transform: translate(-30%, -50%) rotate(-135deg); }
.lightbox__nav--next::before { transform: translate(-70%, -50%) rotate(45deg); }

.lightbox__close {
  top: calc(24px + var(--adminbar));
  right: 30px;
}

.lightbox__close::before,
.lightbox__close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 2px;
  background: #fff;
}

.lightbox__close::before { transform: translate(-50%, -50%) rotate(45deg); }
.lightbox__close::after  { transform: translate(-50%, -50%) rotate(-45deg); }

.lightbox__counter {
  position: absolute;
  bottom: 28px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  pointer-events: none;
}

.lightbox.is-single .lightbox__nav {
  display: none;
}

/* =========================================
   SCROLL OFFSET (fixed header compensation)
   ========================================= */
[id] {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  background-color: #181818;
  height: 70px;
  display: flex;
  align-items: center;
}

/* text starts on the same line as the logo in the header (50px) */
.footer__inner {
  padding: 0 50px;
  width: 100%;
}

.footer__inner p {
  font-size: 20px;
  color: #fff;
}

/* =========================================
   RESPONSIVE — TABLET (≤1100px)
   ========================================= */
@media (max-width: 1100px) {
  .container {
    padding: 0 60px;
  }

  .hero__content {
    padding: 0 60px;
  }

  .hero__title {
    font-size: 90px;
  }

  .section-title {
    font-size: 48px;
  }

  .about__heading {
    font-size: 48px;
  }

  .about__desc {
    white-space: normal;
  }

  .stats__num {
    font-size: 48px;
  }

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

  .process__step-title {
    font-size: 18px;
    white-space: normal;
  }

  .contacts__layout {
    gap: 40px;
    padding-right: 0;
  }
}

/* =========================================
   RESPONSIVE — MOBILE (≤768px)
   ========================================= */
@media (max-width: 1100px) {
  .header__nav {
    gap: 30px;
  }
}

@media (max-width: 960px) {
  .header__nav {
    display: none;
  }
}

@media (max-width: 768px) {
  /* Layout */
  .container {
    padding: 0 20px;
  }

  /* Header */
  :root {
    --header-h: 56px;
  }

  .header__inner {
    padding: 0 20px;
  }

  .mobile-nav {
    width: min(86vw, 360px);
    padding: 36px 28px 30px;
  }

  .lightbox__stage {
    width: 100vw;
    height: calc(100vh - 120px);
  }

  .lightbox__nav {
    top: auto;
    bottom: 16px;
    margin-top: 0;
    width: 48px;
    height: 48px;
  }

  .lightbox__nav--prev { left: 16px; }
  .lightbox__nav--next { right: 16px; }

  .lightbox__close {
    top: 12px;
    right: 12px;
    width: 48px;
    height: 48px;
  }

  .header__nav {
    display: none;
  }

  .header__burger {
    display: flex;
  }

  .header__logo {
    width: 170px;
    height: 35px;
  }

  /* Hero */
  .hero {
    min-height: 520px;
  }

  .hero__content {
    padding: 0 20px;
    bottom: 50px;
  }

  .hero__line + .hero__line {
    margin-top: 0;
  }

  /* big and bold like on desktop; "ОБРЕТАЮТ ФОРМУ" wraps → 3 lines if needed */
  .hero__title {
    font-size: clamp(48px, 17vw, 84px);
    line-height: 1.02;
    letter-spacing: 0;
  }

  /* Section titles */
  .section-title,
  .services .section-title,
  .process .section-title,
  .team .section-title,
  .courses .section-title,
  .contacts .section-title {
    font-size: 36px;
    letter-spacing: -0.5px;
    margin-bottom: 28px;
  }

  /* About */
  .about {
    padding: 50px 0 40px;
  }

  .about__text-block {
    margin-bottom: 36px;
  }

  .about__heading {
    font-size: 36px;
    max-width: 100%;
  }

  .about__desc {
    white-space: normal;
    font-size: 17px;
  }

  /* Stats: two columns — 10+ / 200+ on the left, 12+ / 360° on the right */
  .stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto;
    grid-auto-flow: column;
    gap: 28px 16px;
  }

  .stats__divider {
    display: none;
  }

  .stats__item,
  .stats__item--center {
    align-items: flex-start;
    text-align: left;
  }

  .stats__num {
    font-size: 44px;
  }

  .stats__lbl {
    font-size: 16px;
  }

  /* Portfolio */
  .portfolio {
    padding-bottom: 50px;
  }

  .portfolio__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .portfolio__img-wrap {
    height: 260px;
  }

  .portfolio__info,
  .portfolio__item:nth-child(even) .portfolio__info {
    flex-wrap: wrap;
    gap: 4px 16px;
    padding: 16px 20px;
  }

  .portfolio__name,
  .portfolio__city {
    font-size: 17px;
  }

  /* Services */
  .services {
    padding: 60px 0 50px;
  }

  .services__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Process — reorder steps 1,2,3,4,5 on mobile */
  .process {
    padding: 0 0 60px;
  }

  .process__grid {
    display: flex;
    flex-direction: column;
  }

  .process__cell--1.process__cell--top:not(.process__cell--empty) { order: 1; }
  .process__cell--2.process__cell--bottom:not(.process__cell--empty) { order: 2; }
  .process__cell--3.process__cell--top:not(.process__cell--empty)   { order: 3; }
  .process__cell--4.process__cell--bottom:not(.process__cell--empty) { order: 4; }
  .process__cell--5.process__cell--top:not(.process__cell--empty)   { order: 5; }

  .process__cell--empty {
    display: none;
  }

  .process__timeline {
    display: none;
  }

  .process__cell--top:not(.process__cell--empty),
  .process__cell--bottom:not(.process__cell--empty) {
    padding: 18px 0 18px 20px;
    border-left: 2px solid rgba(255, 255, 255, 0.35);
    margin-bottom: 20px;
    align-self: stretch;
  }

  .process__step-title {
    font-size: 18px;
    white-space: normal;
    margin-bottom: 8px;
  }

  .process__step-text {
    font-size: 16px;
  }

  /* Team — caption below photo instead of overlay */
  .team {
    padding-top: 50px;
  }

  .team .container {
    margin-bottom: 16px;
  }

  .team__photo-wrap {
    height: auto;
    overflow: visible;
    display: flex;
    flex-direction: column;
  }

  .team__photo {
    position: static;
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center bottom; /* crop the sky, keep the people's legs */
    top: auto;
    left: auto;
  }

  /* "Freecraft Studio Architects" bold, the rest regular */
  .team__caption {
    position: static;
    color: #181818;
    text-align: left;
    max-width: 100%;
    padding: 20px;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.6;
    background-color: #fff;
  }

  .team__caption strong,
  .team__caption b {
    font-weight: 700;
  }

  /* Courses */
  .courses {
    padding: 50px 0 60px;
  }

  .courses__content p {
    font-size: 17px;
  }

  /* Contacts */
  .contacts {
    padding-top: 60px;
  }

  .contacts__layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contacts__block p {
    font-size: 17px;
  }

  .contacts__map {
    margin-top: 60px;
  }

  .contacts__map-canvas {
    height: 300px;
  }

  /* Footer */
  .footer {
    height: auto;
    padding: 20px 0;
  }

  .footer__inner {
    padding: 0 20px;
    text-align: center;
  }

  .footer__inner p {
    font-size: 15px;
  }
}

/* =========================================
   RESPONSIVE — SMALL PHONES (≤480px)
   ========================================= */
@media (max-width: 480px) {
  .section-title {
    font-size: 30px;
  }

  .about__heading {
    font-size: 30px;
  }

  .stats__num {
    font-size: 38px;
  }

  .portfolio__img-wrap {
    height: 220px;
  }

  .team__photo {
    height: 240px;
  }
}
