/* =========================================================
   DEVELOPMENT PAGE — pixel-perfect to Figma 1920
   ========================================================= */

.big_block_home--development {
  background: #FFFFFF;
  height: auto;
  min-height: 0;
  position: relative;
}
.big_block_home--development > .container {
  padding: 0;
  height: auto;
}
/* Mega-menu logo override */
.big_block_home--development header .mega-menu .logo img { filter: none; }

/* Crop the header's full-width horizontal divider so it doesn't extend past
   the vertical rails (Figma): replace border-bottom with a pseudo-line bound
   to the rails' x range (96..1824). */
.big_block_home--development header .about_block .top_header_group {
  border-bottom: 0;
  position: relative;
}
.big_block_home--development header .about_block .top_header_group::after {
  content: "";
  position: absolute;
  left: 96px;
  right: 96px;
  bottom: 0;
  height: 1px;
  background: #010101;
  pointer-events: none;
}

/* Vertical rails — Figma Lines 64 (x=1824) & 100 (x=96) span the header+hero area */
.big_block_home--development::before,
.big_block_home--development::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1.6px;
  background: #E1E1E1;
  z-index: 200;
  pointer-events: none;
}
.big_block_home--development::before { left: 96px; }
.big_block_home--development::after  { right: 96px; }

/* Hide rails when mega-menu overlay is open */
body:has(.mega-menu.active) .big_block_home--development::before,
body:has(.mega-menu.active) .big_block_home--development::after,
body:has(.mega-menu.active) .dev_projects::before,
body:has(.mega-menu.active) .dev_projects::after,
body:has(.mega-menu.active) .dev_steps::before,
body:has(.mega-menu.active) .dev_steps::after {
  display: none;
}

/* ----- HERO ----- */
.dev_hero {
  padding: 85px 0 64px;
  text-align: center;
  background: #FFFFFF;
}
.dev_hero__breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: 25px;
  line-height: 130%;
  color: #C4C4C4;
  margin-bottom: 32px;
}
.dev_hero__breadcrumbs a,
.dev_hero__breadcrumbs span {
  color: #C4C4C4;
  text-decoration: none;
  transition: color .2s;
}
.dev_hero__breadcrumbs a:hover { color: #010101; }
.dev_hero__sep { display: inline-block; }

.dev_hero__title {
  font-family: "Felidae", "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: 80px;
  line-height: 110%;
  letter-spacing: 0.02em;
  color: #010101;
  text-transform: uppercase;
  margin: 0 auto 32px;
  max-width: 1701px;
}
.dev_hero__subtitle {
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: 25px;
  line-height: 130%;
  color: #010101;
  margin: 0 auto 32px;
  max-width: 1701px;
}
.dev_hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 544px;
  height: 80px;
  background: transparent;
  color: #232323;
  border: 1.6px solid #232323;
  font-family: "Felidae", "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: 25px;
  line-height: 150%;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s, color .25s;
  margin: 0 auto;
}
.dev_hero__btn:hover { background: #010101; color: #FFFFFF; border-color: #010101; }

/* ----- PANORAMA: full-bleed photo (1920×635) ----- */
.dev_panorama {
  width: 100%;
  display: block;
  margin-top: 0;
  overflow: hidden;
  position: relative;
}
.dev_panorama img {
  width: 100%;
  height: 635px;
  object-fit: cover;
  display: block;
  transition: transform 1.6s cubic-bezier(0.16, 1, 0.3, 1);
}
/* Slow zoom-in on the panorama as it scrolls into view */
body.js-anim-ready .dev_panorama img.anim-wipe {
  clip-path: inset(0 100% 0 0);
  transform: scale(1.08);
  transition: clip-path 1.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 2.5s cubic-bezier(0.16, 1, 0.3, 1);
}
body.js-anim-ready .dev_panorama img.anim-wipe.visible {
  clip-path: inset(0 0 0 0);
  transform: scale(1);
}
/* Subtle parallax handled by global --parallax engine in main.js */
.dev_panorama--parallax {
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  background-repeat: no-repeat;
  will-change: background-position;
}

/* =========================================================
   PROJECTS — title + alternating rows (text+photo / photo+text)
   Figma: section title 1744×165, rows ~902 tall each, photo 869×854
   ========================================================= */
.dev_projects {
  background: #FFFFFF;
  position: relative;
  padding: 96px 96px 0;
}
.dev_projects::before,
.dev_projects::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1.6px;
  background: #E1E1E1;
  z-index: 200;
  pointer-events: none;
}
.dev_projects::before { left: 96px; }
.dev_projects::after  { right: 96px; }
.dev_projects__head {
  text-align: center;
  margin-bottom: 80px;
}
.dev_projects__title {
  font-family: "Felidae", "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: 80px;
  line-height: 110%;
  letter-spacing: 0.02em;
  color: #010101;
  text-transform: uppercase;
  margin: 0 auto;
  max-width: 1744px;
}

.dev_proj {
  display: grid;
  /* Figma: text col 768 (32 padding + 736 content) | gap 91 | photo 869 → 1728 inner */
  grid-template-columns: 768fr 869fr;
  column-gap: 91px;
  align-items: stretch;
  border-top: 1.6px solid #E1E1E1;
  padding: 48px 0 48px;
  min-height: 902px;
}
.dev_proj:last-child { border-bottom: 1.6px solid #E1E1E1; }
.dev_proj--text-right {
  grid-template-columns: 869fr 768fr;
}

.dev_proj__photo {
  width: 100%;
}
.dev_proj__photo img {
  width: 100%;
  height: 854px;
  object-fit: cover;
  display: block;
}

.dev_proj__text {
  display: flex;
  flex-direction: column;
  padding-left: 32px;
}
.dev_proj--text-right .dev_proj__text {
  padding-left: 0;
  padding-right: 32px;
}

.dev_proj__name {
  font-family: "Felidae", "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: 44px;
  line-height: 110%;
  letter-spacing: 0.02em;
  color: #010101;
  text-transform: uppercase;
  margin: 0 0 24px;
}
.dev_proj__type {
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: 32px;
  line-height: 120%;
  color: #B9B9B9;
  margin: 0 0 16px;
  text-transform: uppercase;
}
.dev_proj__desc {
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: 25px;
  line-height: 130%;
  color: #3C3C3B;
  margin: 0 0 48px;
  max-width: 736px;
}
.dev_proj__specs {
  list-style: none;
  padding: 0;
  /* Push specs (and price/button below) toward the bottom of the text column,
     matching Figma layout where specs sit much lower than description. */
  margin: auto 0 32px 0;
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: 25px;
  line-height: 130%;
  color: #B9B9B9;
}
.dev_proj__specs li {
  margin-bottom: 16px;
}
.dev_proj__specs li:last-child { margin-bottom: 0; }
.dev_proj__price {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 24px;
}
.dev_proj__price-eur {
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: 44px;
  line-height: 110%;
  letter-spacing: 0.02em;
  color: #010101;
}
.dev_proj__price-num {
  font-family: "Felidae", "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: 44px;
  line-height: 110%;
  letter-spacing: 0.02em;
  color: #010101;
}
.dev_proj__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 760px;
  height: 80px;
  background: transparent;
  color: #232323;
  border: 1.6px solid #232323;
  font-family: "Felidae", "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: 25px;
  line-height: 150%;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color .25s, color .25s;
  box-sizing: border-box;
}
.dev_proj__btn:hover { background: #010101; color: #FFFFFF; border-color: #010101; }

/* =========================================================
   STEPS — title + 3-step grid + full-width CTA bar (Figma 1920×1022)
   ========================================================= */
.dev_steps {
  background: #FFFFFF;
  position: relative;
  /* 96 horizontal padding so the grid stays inside the vertical rails */
  padding: 96px 96px 0;
  margin-top: 96px;
  margin-bottom: 96px;
  border-top: 1.6px solid #E1E1E1;
}
.dev_steps::before,
.dev_steps::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1.6px;
  background: #E1E1E1;
  z-index: 200;
  pointer-events: none;
}
.dev_steps::before { left: 96px; }
.dev_steps::after  { right: 96px; }

.dev_steps__head {
  text-align: center;
  padding: 0 96px;
  margin-bottom: 80px;
}
.dev_steps__title {
  font-family: "Felidae", "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: 80px;
  line-height: 110%;
  letter-spacing: 0.02em;
  color: #010101;
  text-transform: uppercase;
  margin: 0 auto;
  max-width: 1629px;
}

.dev_steps__grid {
  display: grid;
  /* Figma columns: 673 | 585 | 662 (sums to 1920). minmax(0, fr) lets columns
     shrink below intrinsic min-content so long uppercase Cyrillic words don't
     blow out the grid at sub-1920 desktop widths. */
  grid-template-columns: minmax(0, 673fr) minmax(0, 585fr) minmax(0, 662fr);
  border-top: 1.6px solid #E1E1E1;
  border-bottom: 1.6px solid #E1E1E1;
  min-height: 585px;
}
.dev_steps__cell {
  padding: 48px 32px 96px;
  display: flex;
  flex-direction: column;
  border-right: 1.6px solid #E1E1E1;
  box-sizing: border-box;
}
.dev_steps__cell:last-child { border-right: 0; }

.dev_steps__num {
  display: block;
  font-family: "Felidae", "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: 44px;
  line-height: 110%;
  letter-spacing: 0.02em;
  color: #C4C4C4;
  margin: 0 0 48px;
}
.dev_steps__name {
  font-family: "Felidae", "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: 44px;
  line-height: 110%;
  letter-spacing: 0.02em;
  color: #010101;
  text-transform: uppercase;
  margin: 0 0 32px;
  overflow-wrap: break-word;
}
.dev_steps__desc {
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: 25px;
  line-height: 130%;
  color: #3C3C3B;
  /* Push description to bottom of cell so all 3 descriptions bottom-align
     regardless of how many lines the title above wraps to. */
  margin: auto 0 0 0;
  max-width: 533px;
}

/* Full-width dark CTA bar after the steps grid */
.dev_steps__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 96px;
  background: #41545C;
  color: #FFFFFF;
  border: 0;
  font-family: "Felidae", "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: 25px;
  line-height: 150%;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s, color .25s;
}
.dev_steps__btn:hover { background: #010101; color: #FFFFFF; }

/* =========================================================
   ADAPTIVE — tablet ≤1280
   ========================================================= */
/* =========================================================
   Pixel-perfect to Figma 1200_Development (1200x4315)
   Frame: 1200_Development. All values measured from Figma.
   ========================================================= */
@media (max-width: 1200px) {
  /* Container override: dev page uses full-bleed at 1200.
     Higher specificity than buy.css `.big_block_home.big_block_home--buy > .container` */
  .big_block_home.big_block_home--development > .container { padding: 0 !important; max-width: 100% !important; }
  /* Also kill the buy.css negative-margin trick on top_header_group at 1200 */
  .big_block_home.big_block_home--development .top_header_group {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 60px !important;
    padding-right: 60px !important;
  }
  .big_block_home.big_block_home--development .bottom_header {
    padding-left: 60px;
    padding-right: 60px;
  }

  /* HERO: full-bleed background, text centered max 1063 */
  .dev_hero { padding: 48px 0 0 !important; text-align: center; }
  .dev_hero__breadcrumbs {
    display: inline-flex;
    font-size: 16px; line-height: 130%; letter-spacing: 0; gap: 6px;
    margin-bottom: 24px;
  }
  .dev_hero__title {
    font-family: "Felidae", "Cormorant Garamond", serif; font-weight: 400;
    font-size: 50px; line-height: 110%; letter-spacing: 0.02em;
    max-width: 1063px; margin: 0 auto;
    color: #010101;
  }
  .dev_hero__subtitle {
    font-family: "Inter", sans-serif; font-weight: 300;
    font-size: 14px; line-height: 130%; letter-spacing: 0;
    color: #010101;
    max-width: 1063px; margin: 20px auto 32px;
  }
  .dev_hero__btn {
    display: inline-flex; align-items: center; justify-content: center;
    font-family: "Felidae", "Cormorant Garamond", serif; font-weight: 400;
    font-size: 16px; line-height: 150%; letter-spacing: 0.05em;
    color: #232323;
    height: 50px; padding: 0 32px;
    margin: 0 auto;
    width: auto; max-width: none;
    white-space: nowrap;       /* Figma: button text on ONE line */
    text-align: center;
  }

  /* PANORAMA: full-bleed image, height 397 (Figma Rectangle 699) */
  .dev_panorama { padding: 0; margin-top: 47px; }
  .dev_panorama img { width: 100%; height: 397px; object-fit: cover; display: block; }

  /* PROJECTS section */
  .dev_projects { padding: 80px 0 0; }
  .dev_projects__head { padding: 0; margin-bottom: 50px; text-align: center; }
  .dev_projects__title {
    font-family: "Felidae", "Cormorant Garamond", serif; font-weight: 400;
    font-size: 50px; line-height: 110%; letter-spacing: 0.02em;
    max-width: 1090px; margin: 0 auto;
    text-align: center;
  }

  /* Project rows: photo + text grid, alternating sides */
  .dev_proj {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 32px;
    padding: 30px 60px 0;
    min-height: 564px;
    border-top: 1.6px solid #E1E1E1;
  }
  .dev_proj__photo { width: 100%; }
  .dev_proj__photo img { width: 100%; height: 534px; object-fit: cover; display: block; }
  .dev_proj__text {
    display: flex; flex-direction: column;
    padding: 0 28px;     /* SAME padding both sides for both projects */
  }
  /* DOM order naturally alternates: project 1 = text, photo / project 2 = photo, text.
     We DON'T override grid auto-placement with `order` so text-right truly puts text on the right. */
  .dev_proj--text-right .dev_proj__text { padding: 0 28px; }
  /* Both buttons start at column-left + 28 → vertically aligned across rows */
  .dev_proj__name {
    font-family: "Felidae", "Cormorant Garamond", serif; font-weight: 400;
    font-size: 28px; line-height: 110%; letter-spacing: 0.02em;
    color: #010101; margin: 0;
    text-transform: uppercase;
  }
  .dev_proj__type {
    font-family: "Inter", sans-serif; font-weight: 300;
    font-size: 20px; line-height: 120%; color: #b9b9b9;
    margin: 15px 0 0;
  }
  .dev_proj__desc {
    font-family: "Inter", sans-serif; font-weight: 300;
    font-size: 16px; line-height: 130%; color: #3c3c3b;
    margin: 10px 0 0; max-width: 460px;
  }
  .dev_proj__specs {
    list-style: none; padding: 0; margin: 116px 0 0;
    display: flex; flex-direction: column; gap: 10px;
    max-width: 287px;
  }
  .dev_proj__specs li {
    font-family: "Inter", sans-serif; font-weight: 300;
    font-size: 16px; line-height: 110%; letter-spacing: 0.02em;
    color: #b9b9b9;
  }
  .dev_proj__price {
    margin: 32px 0 0; display: flex; align-items: baseline; gap: 7px;
  }
  .dev_proj__price-eur {
    font-family: "Inter", sans-serif; font-weight: 300;
    font-size: 28px; line-height: 110%; letter-spacing: 0.02em; color: #010101;
  }
  .dev_proj__price-num {
    font-family: "Felidae", "Cormorant Garamond", serif; font-weight: 400;
    font-size: 28px; line-height: 110%; letter-spacing: 0.02em; color: #010101;
  }
  .dev_proj__btn {
    display: flex; align-items: center; justify-content: center;
    font-family: "Felidae", "Cormorant Garamond", serif; font-weight: 400;
    font-size: 16px; line-height: 150%; letter-spacing: 0.05em;
    color: #232323; background: transparent;
    border: 1px solid #232323;
    height: 50px; padding: 0 32px; margin: 30px auto 0 0;
    width: 100%; max-width: 475px;
    text-decoration: none;
    align-self: flex-start;     /* Anchored to left edge of text column → both buttons align to col-left + 28 padding */
  }

  /* STEPS section.
     Figma: cells are 366 wide each. Vertical dividers at x=420.25 and x=786.25.
     Card widths: 01 = 0..420 (with text starting at x=73), 02 = 420..786, 03 = 786..1200.
     Text widths: 01 name=295w, 02 name=255w, 03 name=249w. Desc width 309-333.
     Step number 28px Felidae #c4c4c4, name 28px Felidae #010101, desc 16px Inter. */
  .dev_steps { padding: 0; margin-top: 80px; }
  .dev_steps__head {
    padding: 0 60px; margin-bottom: 50px;
    text-align: center;
  }
  .dev_steps__title {
    font-family: "Felidae", "Cormorant Garamond", serif; font-weight: 400;
    font-size: 50px; line-height: 110%; letter-spacing: 0.02em;
    max-width: 1018px; margin: 0 auto;
    text-align: center;
  }
  .dev_steps__grid {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    border-top: 1.6px solid #E1E1E1; border-bottom: 1.6px solid #E1E1E1;
    min-height: 366px;
    position: relative;
    z-index: 5;
    background: #FFFFFF;     /* opaque so background rails don't bleed through text */
  }
  .dev_steps__cell {
    /* Figma: text starts at x=73 from cell-left, ends ~28 from cell-right.
       At 1200 viewport, each col = 400px. Padding: 73 left, 67 right ~= 70 each */
    padding: 35px 64px 35px 64px;
    border-right: 1.6px solid #E1E1E1;
    display: flex; flex-direction: column;
    position: relative;
    background: #FFFFFF;
    z-index: 6;
  }
  .dev_steps__cell:last-child { border-right: 0; }
  .dev_steps__num {
    font-family: "Felidae", "Cormorant Garamond", serif; font-weight: 400;
    font-size: 28px; line-height: 110%; letter-spacing: 0.02em;
    color: #c4c4c4; margin: 0 0 30px;
  }
  .dev_steps__name {
    font-family: "Felidae", "Cormorant Garamond", serif; font-weight: 400;
    font-size: 28px; line-height: 110%; letter-spacing: 0.02em;
    color: #010101; margin: 0 0 24px;
    text-transform: uppercase;
    min-height: auto;
    overflow-wrap: break-word;
  }
  .dev_steps__desc {
    font-family: "Inter", sans-serif; font-weight: 300;
    font-size: 16px; line-height: 130%; color: #3c3c3b;
    margin: auto 0 0 0;
  }
  /* CTA bar — full bleed dark teal */
  .dev_steps__btn {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 50px; margin: 0;
    background: #41545C; color: #FFFFFF;
    font-family: "Felidae", "Cormorant Garamond", serif; font-weight: 400;
    font-size: 16px; line-height: 115%; letter-spacing: 0.05em;
    text-transform: uppercase; text-decoration: none;
    white-space: nowrap;
    position: relative;
    z-index: 5;
  }

  /* Hide ALL development-page rails at 1200 (text shouldn't be crossed) */
  .big_block_home--development::before,
  .big_block_home--development::after,
  .dev_projects::before,
  .dev_projects::after,
  .dev_steps::before,
  .dev_steps::after,
  .dev_panorama::before,
  .dev_panorama::after { display: none !important; }

  /* Kill the .wrapper border-left/right (buy.css line 7-12) on development page */
  body:has(.big_block_home--development) .wrapper {
    border-left: 0 !important;
    border-right: 0 !important;
    max-width: 100% !important;
  }
}

/* =========================================================
   Pixel-perfect to Figma 768_Development (768x3083)
   Frame: 2135:11155. Hero eyebrow at x=304 y=123 (20px Felidae),
   main title x=40 y=155 w=723 (35px), CTA frame 197,253,434x30.
   Panorama 768x298. Projects 2-col alternating: text 304 + photo 345.
   Steps cards: 01@x58, 02@x303, 03@x534. CTA bar 689x30 #41545c.
   ========================================================= */
@media (max-width: 768px) {
  /* Container override: dev page uses full-bleed at 768. */
  .big_block_home.big_block_home--development > .container { padding: 0 !important; max-width: 100% !important; }
  .big_block_home.big_block_home--development .top_header_group {
    margin-left: 0 !important; margin-right: 0 !important;
    padding-left: 30px !important; padding-right: 30px !important;
  }
  .big_block_home.big_block_home--development .bottom_header {
    padding-left: 30px; padding-right: 30px;
  }

  /* HERO (Figma: y=123 eyebrow 20px ls 2%, y=155 title 35px w=723, y=253 CTA 434x30) */
  .dev_hero { padding: 40px 30px 32px !important; text-align: center; }
  .dev_hero__breadcrumbs {
    font-family: "Inter", sans-serif; font-weight: 300;
    font-size: 12px; line-height: 130%; letter-spacing: 0;
    margin-bottom: 16px; gap: 6px; color: #a6a6a6;
  }
  .dev_hero__breadcrumbs a, .dev_hero__breadcrumbs span { color: #a6a6a6; }
  .dev_hero__title {
    font-family: "Felidae", "Cormorant Garamond", serif; font-weight: 400;
    font-size: 35px; line-height: 110%; letter-spacing: 0.02em;
    max-width: 723px; margin: 0 auto 16px;
    color: #010101;
  }
  .dev_hero__subtitle {
    font-family: "Felidae", "Cormorant Garamond", serif; font-weight: 400;
    font-size: 20px; line-height: 110%; letter-spacing: 0.02em;
    margin: 0 auto 24px; max-width: 480px; color: #010101;
  }
  .dev_hero__btn {
    display: inline-flex; align-items: center; justify-content: center;
    font-family: "Felidae", "Cormorant Garamond", serif; font-weight: 400;
    font-size: 12px; line-height: 115%; letter-spacing: 0.02em;
    color: #010101; background: #ffffff;
    border: 1px solid #010101;
    height: 30px; padding: 0 16px; margin: 0 auto;
    width: 100%; max-width: 434px;
    text-decoration: none; white-space: nowrap;
  }

  /* PANORAMA: full-bleed image, 298 tall (Figma Rectangle 700) */
  .dev_panorama { padding: 0; margin-top: 24px; }
  .dev_panorama img { width: 100%; height: 298px; object-fit: cover; display: block; }

  /* PROJECTS section — 2-col alternating layout (Figma 768) */
  .dev_projects { padding: 32px 30px 0 !important; }
  .dev_projects__head { padding: 0; margin-bottom: 24px; text-align: center; }
  .dev_projects__title {
    font-family: "Felidae", "Cormorant Garamond", serif; font-weight: 400;
    font-size: 35px; line-height: 110%; letter-spacing: 0.02em;
    max-width: 632px; margin: 0 auto;
    text-align: center;
  }
  /* Project rows: 2 columns alternating
     Figma: project 1 text x=77 (304w) + photo x=401 (345w) → ratio ~304/345
     Project 2 photo x=57 (345w) + text x=419 (304w) */
  .dev_proj {
    display: grid !important;
    grid-template-columns: 304fr 345fr !important;
    column-gap: 20px;
    row-gap: 0;
    padding: 24px 0 0 !important;
    min-height: auto;
    align-items: start;
  }
  .dev_proj--text-right {
    grid-template-columns: 345fr 304fr !important;
  }
  /* Photo cells: 386 tall in Figma; using aspect to keep ratio */
  .dev_proj__photo { width: 100%; }
  .dev_proj__photo img {
    width: 100%; height: 386px; object-fit: cover; display: block;
    max-width: 100%;
  }
  /* Text columns: padding 0 (Figma text starts at column edge) */
  .dev_proj__text,
  .dev_proj--text-right .dev_proj__text {
    padding: 0 !important;
    display: flex; flex-direction: column;
  }
  .dev_proj__name {
    font-family: "Felidae", "Cormorant Garamond", serif; font-weight: 400;
    font-size: 20px; line-height: 110%; letter-spacing: 0.02em;
    color: #010101; margin: 0 0 12px !important;
    text-transform: uppercase;
  }
  .dev_proj__type {
    font-family: "Inter", sans-serif; font-weight: 300;
    font-size: 14px; line-height: 130%; color: #a6a6a6;
    margin: 0 0 8px !important;
    text-transform: none;
  }
  .dev_proj__desc {
    font-family: "Inter", sans-serif; font-weight: 300;
    font-size: 14px; line-height: 130%; color: #3c3c3b;
    margin: 0 0 24px !important;
    max-width: 304px;
  }
  .dev_proj__specs {
    list-style: none; padding: 0; margin: 0 0 24px !important;
    display: flex; flex-direction: column; gap: 6px;
    max-width: 304px;
  }
  .dev_proj__specs li {
    font-family: "Inter", sans-serif; font-weight: 300;
    font-size: 14px; line-height: 110%; letter-spacing: 0.02em;
    color: #a6a6a6; margin: 0;
  }
  .dev_proj__price {
    margin: 0 0 12px !important; display: flex; align-items: baseline; gap: 4px;
  }
  .dev_proj__price-eur {
    font-family: "Inter", sans-serif; font-weight: 300;
    font-size: 18px; line-height: 110%; letter-spacing: 0.02em; color: #010101;
  }
  .dev_proj__price-num {
    font-family: "Felidae", "Cormorant Garamond", serif; font-weight: 400;
    font-size: 18px; line-height: 110%; letter-spacing: 0.02em; color: #010101;
  }
  .dev_proj__btn {
    display: flex !important; align-items: center; justify-content: center;
    font-family: "Felidae", "Cormorant Garamond", serif; font-weight: 400;
    font-size: 10px; line-height: 150%; letter-spacing: 0.05em;
    color: #010101 !important; background: transparent !important;
    border: 1px solid #010101 !important;
    height: 30px !important; padding: 0 12px;
    margin: 0 !important;
    width: 100%; max-width: 304px !important;
    text-decoration: none;
    align-self: flex-start !important;
    text-transform: uppercase;
  }

  /* STEPS section — 3-col grid (Figma 768)
     Step 01: x=58 (text starts), 02: x=302, 03: x=533/534 */
  .dev_steps {
    padding: 0 30px !important;
    margin-top: 32px; margin-bottom: 32px;
    border-top: 0;
  }
  .dev_steps__head {
    padding: 0; margin-bottom: 24px;
    text-align: center;
  }
  .dev_steps__title {
    font-family: "Felidae", "Cormorant Garamond", serif; font-weight: 400;
    font-size: 35px; line-height: 110%; letter-spacing: 0.02em;
    max-width: 620px; margin: 0 auto;
    text-align: center;
  }
  /* CTA bar appears BEFORE the grid in Figma at y=1696 (between projects and steps title)
     But our HTML has it AFTER the grid; we keep DOM order, style as Figma 30px dark teal. */
  .dev_steps__grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) !important;
    column-gap: 16px;
    border-top: 0; border-bottom: 0;
    min-height: auto;
    background: transparent;
  }
  .dev_steps__cell {
    padding: 0 !important;
    border-right: 0 !important; border-bottom: 0 !important;
    display: flex; flex-direction: column;
    background: transparent;
  }
  .dev_steps__num {
    font-family: "Felidae", "Cormorant Garamond", serif; font-weight: 400;
    font-size: 20px; line-height: 110%; letter-spacing: 0.02em;
    color: #a6a6a6; margin: 0 0 16px !important;
  }
  .dev_steps__name {
    font-family: "Felidae", "Cormorant Garamond", serif; font-weight: 400;
    font-size: 20px; line-height: 110%; letter-spacing: 0.02em;
    color: #010101; margin: 0 0 24px !important;
    text-transform: uppercase;
    min-height: auto;
    overflow-wrap: break-word;
  }
  .dev_steps__desc {
    font-family: "Inter", sans-serif; font-weight: 300;
    font-size: 12px; line-height: 130%; color: #3c3c3b;
    margin: auto 0 0 0 !important;
  }
  /* CTA bar — full-width dark teal, 30px tall, 12px Felidae white */
  .dev_steps__btn {
    display: flex !important; align-items: center; justify-content: center;
    width: 100%; height: 30px !important;
    margin: 32px 0 0 !important;
    background: #41545c !important; color: #ffffff !important;
    font-family: "Felidae", "Cormorant Garamond", serif; font-weight: 400;
    font-size: 12px; line-height: 115%; letter-spacing: 0.05em;
    text-transform: uppercase; text-decoration: none;
    white-space: nowrap; border: 0;
  }

  /* Hide ALL development-page rails at 768 (text shouldn't be crossed) */
  .big_block_home--development::before,
  .big_block_home--development::after,
  .dev_projects::before,
  .dev_projects::after,
  .dev_steps::before,
  .dev_steps::after,
  .dev_panorama::before,
  .dev_panorama::after { display: none !important; }

  body:has(.big_block_home--development) .wrapper {
    border-left: 0 !important;
    border-right: 0 !important;
    max-width: 100% !important;
  }

  /* Top_header_group divider line bound to padding (not full bleed) */
  .big_block_home--development header .about_block .top_header_group::after {
    left: 30px !important; right: 30px !important;
  }
}

/* =========================================================
   Pixel-perfect to Figma 360_Development (360x4322)
   Frame: 2135:10914. Hero eyebrow 20px Felidae ls 4% (x=15 y=122),
   title 30px Felidae ls 2% (x=13 y=153 w=330), subtitle 14px Inter,
   CTA 310x50 #010101 stroke @14px Felidae ls 5%.
   Panorama 360x247 full-bleed. Projects SINGLE COLUMN stacked.
   Steps SINGLE COLUMN stacked (3 cards: 309x211 each, gap 60).
   ========================================================= */
@media (max-width: 360px) {
  /* Container override */
  .big_block_home.big_block_home--development > .container { padding: 0 !important; max-width: 100% !important; }
  .big_block_home.big_block_home--development .top_header_group {
    padding-left: 15px !important; padding-right: 15px !important;
  }
  .big_block_home.big_block_home--development .bottom_header {
    padding-left: 15px !important; padding-right: 15px !important;
  }
  .big_block_home--development header .about_block .top_header_group::after {
    left: 15px !important; right: 15px !important;
  }

  /* HERO */
  .dev_hero { padding: 32px 15px 24px !important; text-align: center; }
  .dev_hero__breadcrumbs {
    font-family: "Inter", sans-serif; font-weight: 300;
    font-size: 14px; line-height: 130%; letter-spacing: 0;
    margin-bottom: 16px !important; gap: 5px; color: #a6a6a6;
  }
  .dev_hero__breadcrumbs a, .dev_hero__breadcrumbs span { color: #a6a6a6; }
  .dev_hero__title {
    font-family: "Felidae", "Cormorant Garamond", serif; font-weight: 400;
    font-size: 30px; line-height: 110%; letter-spacing: 0.02em;
    max-width: 330px; margin: 0 auto 20px !important;
    color: #010101;
  }
  .dev_hero__subtitle {
    font-family: "Inter", sans-serif; font-weight: 300;
    font-size: 14px; line-height: 130%; letter-spacing: 0;
    margin: 0 auto 20px !important; max-width: 330px; color: #010101;
  }
  .dev_hero__btn {
    display: inline-flex; align-items: center; justify-content: center;
    font-family: "Felidae", "Cormorant Garamond", serif; font-weight: 400;
    font-size: 14px; line-height: 150%; letter-spacing: 0.05em;
    color: #010101 !important; background: #ffffff !important;
    border: 1px solid #010101 !important;
    height: 50px !important; padding: 0 16px !important; margin: 0 auto !important;
    width: 100%; max-width: 310px !important;
    text-decoration: none; white-space: normal;
    text-transform: uppercase;
  }

  /* PANORAMA */
  .dev_panorama { padding: 0; margin-top: 16px; }
  .dev_panorama img { width: 100%; height: 247px; object-fit: cover; display: block; }

  /* PROJECTS section — SINGLE COLUMN STACKED */
  .dev_projects { padding: 32px 15px 0 !important; }
  .dev_projects__head { padding: 0; margin-bottom: 24px !important; text-align: center; }
  .dev_projects__title {
    font-family: "Felidae", "Cormorant Garamond", serif; font-weight: 400;
    font-size: 30px; line-height: 110%; letter-spacing: 0.02em;
    max-width: 330px; margin: 0 auto;
    text-align: center;
  }
  /* Each project: text TOP, image MIDDLE, specs+price+btn BOTTOM.
     For project 2 (text-right) we keep DOM order: photo first then text — but at 360 we want image AFTER text.
     Force order so all projects show: name → photo → specs → price → btn. */
  .dev_proj {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    column-gap: 0 !important;
    row-gap: 12px;
    padding: 24px 0 0 !important;
    align-items: stretch;
  }
  .dev_proj__text { order: 1; padding: 0 !important; }
  .dev_proj__photo { order: 2; width: 100%; }
  /* Inside text column we need: name → type → photo would go HERE in Figma but our photo is sibling.
     To get name+type FIRST then image, then specs+price+btn we'd need to split text col.
     Simpler approach: keep all-text inside __text, photo as sibling appearing between name/type and specs.
     But that requires DOM restructure. Compromise: name+type+desc on top, photo, specs+price+btn inside text below photo.
     Use a "hack": absolutely position would break flow — just keep text, then photo after, and let specs naturally follow inside text col but hide desc; Figma 360 shows: name, type (Вилла), photo, specs (no desc shown!), price, btn.
     So at 360: hide .dev_proj__desc to match Figma. */
  .dev_proj__desc { display: none !important; }
  .dev_proj__photo img { width: 100%; height: 247px; object-fit: cover; display: block; max-width: 100%; }
  .dev_proj__name {
    font-family: "Felidae", "Cormorant Garamond", serif; font-weight: 400;
    font-size: 20px; line-height: 110%; letter-spacing: 0.02em;
    color: #010101; margin: 0 0 8px !important;
    text-transform: uppercase;
  }
  .dev_proj__type {
    font-family: "Inter", sans-serif; font-weight: 300;
    font-size: 14px; line-height: 120%; color: #a6a6a6;
    margin: 0 !important; text-transform: none;
  }
  /* Specs as 2-column grid (Figma: 130w x 2 side by side) — but we use flex-wrap or grid */
  .dev_proj__specs {
    list-style: none; padding: 0;
    margin: 16px 0 0 !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    column-gap: 14px; row-gap: 6px;
    max-width: 100% !important;
    order: 3;
  }
  .dev_proj__specs li {
    font-family: "Inter", sans-serif; font-weight: 300;
    font-size: 14px; line-height: 110%; letter-spacing: 0.02em;
    color: #a6a6a6; margin: 0;
  }
  .dev_proj__price {
    margin: 16px 0 0 !important; display: flex; align-items: baseline; gap: 4px;
    order: 4;
  }
  .dev_proj__price-eur {
    font-family: "Inter", sans-serif; font-weight: 300;
    font-size: 20px; line-height: 110%; letter-spacing: 0.02em; color: #010101;
  }
  .dev_proj__price-num {
    font-family: "Felidae", "Cormorant Garamond", serif; font-weight: 400;
    font-size: 20px; line-height: 98%; letter-spacing: 0.02em; color: #010101;
  }
  .dev_proj__btn {
    display: flex !important; align-items: center; justify-content: center;
    font-family: "Felidae", "Cormorant Garamond", serif; font-weight: 400;
    font-size: 12px; line-height: 150%; letter-spacing: 0.05em;
    color: #010101 !important; background: transparent !important;
    border: 1px solid #010101 !important;
    height: 44px !important; padding: 0 16px !important;
    margin: 16px 0 0 !important;
    width: 100%; max-width: 100% !important;
    text-decoration: none; align-self: stretch !important;
    text-transform: uppercase;
    order: 5;
  }
  /* Re-add ordering for text children since .dev_proj__text is itself a flex container */
  .dev_proj__text { display: flex; flex-direction: column; }
  .dev_proj__text .dev_proj__name { order: 1; }
  .dev_proj__text .dev_proj__type { order: 2; }
  .dev_proj__text .dev_proj__specs { order: 3; }
  .dev_proj__text .dev_proj__price { order: 4; }
  .dev_proj__text .dev_proj__btn { order: 5; }

  /* STEPS section — SINGLE COLUMN STACKED (Figma: 3 cards 309x211 each) */
  .dev_steps {
    padding: 0 15px !important;
    margin-top: 32px; margin-bottom: 32px;
    border-top: 0;
  }
  .dev_steps__head { padding: 0; margin-bottom: 24px !important; text-align: center; }
  .dev_steps__title {
    font-family: "Felidae", "Cormorant Garamond", serif; font-weight: 400;
    font-size: 30px; line-height: 110%; letter-spacing: 0.02em;
    max-width: 330px; margin: 0 auto;
    text-align: center;
  }
  .dev_steps__grid {
    display: flex !important;
    flex-direction: column;
    grid-template-columns: none !important;
    row-gap: 40px;
    border-top: 0; border-bottom: 0;
    background: transparent;
  }
  .dev_steps__cell {
    padding: 0 !important;
    border-right: 0 !important; border-bottom: 0 !important;
    display: flex; flex-direction: column;
    background: transparent;
  }
  .dev_steps__num {
    font-family: "Felidae", "Cormorant Garamond", serif; font-weight: 400;
    font-size: 20px; line-height: 110%; letter-spacing: 0.02em;
    color: #a6a6a6; margin: 0 0 16px !important;
  }
  .dev_steps__name {
    font-family: "Felidae", "Cormorant Garamond", serif; font-weight: 400;
    font-size: 20px; line-height: 110%; letter-spacing: 0.02em;
    color: #010101; margin: 0 0 16px !important;
    text-transform: uppercase;
    min-height: auto;
  }
  .dev_steps__desc {
    font-family: "Inter", sans-serif; font-weight: 300;
    font-size: 14px; line-height: 130%; color: #3c3c3b;
    margin: 0;
  }
  .dev_steps__btn {
    display: flex !important; align-items: center; justify-content: center;
    width: 100%; height: 50px !important;
    margin: 32px 0 0 !important;
    background: #41545c !important; color: #ffffff !important;
    font-family: "Felidae", "Cormorant Garamond", serif; font-weight: 400;
    font-size: 14px; line-height: 150%; letter-spacing: 0.05em;
    text-transform: uppercase; text-decoration: none;
    white-space: normal; border: 0;
    text-align: center;
  }
}

/* =========================================================
   CREATIVE ANIMATIONS — Development page
   ========================================================= */

/* --- Hero CTA: arrow slides in on hover --- */
.dev_hero__btn {
  position: relative;
  overflow: hidden;
  transition: background-color 0.3s ease, color 0.3s ease,
              transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (hover: hover) {
  .dev_hero__btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 42px rgba(1, 1, 1, 0.18);
  }
}

/* --- Project cards: photo zooms gently on hover, text shifts --- */
.dev_proj__photo {
  overflow: hidden;
  position: relative;
}
.dev_proj__photo img {
  transition: transform 1.6s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (hover: hover) {
  .dev_proj:hover .dev_proj__photo img {
    transform: scale(1.06);
  }
}

/* --- Project name: fancy underline animates from left --- */
.dev_proj__name {
  position: relative;
  display: inline-block;
}
.dev_proj__name::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 1px;
  background: #41545C;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}
body.js-anim-ready .dev_proj__name.anim-fade-up.visible::after {
  width: 60%;
}

/* --- Project price: scale-in pulse when revealed --- */
body.js-anim-ready .dev_proj__price.anim-fade-up {
  transform: translateY(48px) scale(0.85);
  transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.4s cubic-bezier(0.34, 1.42, 0.64, 1);
}
body.js-anim-ready .dev_proj__price.anim-fade-up.visible {
  transform: none;
}

/* --- Project CTA: subtle fill animation --- */
.dev_proj__btn {
  position: relative;
  overflow: hidden;
  transition: color 0.3s ease,
              background-color 0.3s ease,
              transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (hover: hover) {
  .dev_proj__btn:hover {
    transform: translateY(-3px);
  }
}

/* --- Step numbers: large, with subtle scale-in on reveal + hover lift --- */
.dev_steps__num {
  display: inline-block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.5s ease;
  transform-origin: left center;
}
body.js-anim-ready .dev_steps__cell .dev_steps__num {
  transform: translateX(-30px);
  opacity: 0;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.9s ease;
}
body.js-anim-ready .dev_steps__cell.visible .dev_steps__num {
  transform: translateX(0);
  opacity: 1;
}
@media (hover: hover) {
  .dev_steps__cell:hover .dev_steps__num {
    transform: scale(1.08);
    color: #41545C;
  }
}

/* --- Step cells: hover background tint + lift --- */
.dev_steps__cell {
  transition: background-color 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (hover: hover) {
  .dev_steps__cell:hover {
    background-color: #FAFAFA;
  }
}

/* --- Step name: subtle color deepen on cell hover --- */
.dev_steps__name {
  transition: color 0.4s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (hover: hover) {
  .dev_steps__cell:hover .dev_steps__name {
    color: #41545C;
  }
}

/* --- Bottom CTA bar: arrow icon slide --- */
.dev_steps__btn {
  position: relative;
  overflow: hidden;
}
.dev_steps__btn::after {
  content: "›";
  display: inline-block;
  margin-left: 12px;
  font-size: 1.4em;
  line-height: 1;
  transform: translateX(0);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (hover: hover) {
  .dev_steps__btn:hover::after {
    transform: translateX(8px);
  }
}

/* --- Hero subtitle stats: split visual rhythm with separator highlight --- */
.dev_hero__subtitle {
  /* Slight letter-spacing on hover for emphasis */
  transition: letter-spacing 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.dev_hero__subtitle:hover {
  letter-spacing: 0.01em;
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  body.js-anim-ready .dev_panorama img.anim-wipe,
  body.js-anim-ready .dev_panorama img.anim-wipe.visible,
  body.js-anim-ready .dev_proj__name.anim-fade-up.visible::after,
  body.js-anim-ready .dev_proj__price.anim-fade-up,
  body.js-anim-ready .dev_proj__price.anim-fade-up.visible,
  body.js-anim-ready .dev_steps__cell .dev_steps__num,
  body.js-anim-ready .dev_steps__cell.visible .dev_steps__num {
    transform: none !important;
    clip-path: none !important;
    opacity: 1 !important;
    transition: none !important;
    width: auto !important;
  }
}
