/* =========================================================
   IPTIME Branding – Landing page
   Built from Figma "IPTIME (Copy)" – node 176:1700 (Desktop 1728)
   ========================================================= */

:root {
  --c-primary: #232457;
  --c-primary-dark: #191a51;
  --c-green: #149247;
  --c-green-2: #24ad4b;
  --c-orange: #ff8000;
  --c-text: #28303f;
  --c-sub-body: #333333;
  --c-bg-soft: #f6f7fa;
  --c-border: #d9d9d9;
  --c-border-blue: #c7d5ff;
  --c-red: #db0000;
  --c-white: #ffffff;

  --container: 1200px;
  --gutter: 16px;
  --radius: 20px;
  --pill: 99px;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  color: var(--c-text);
  background: var(--c-white);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }

/* Horizontal container: 264px side padding at 1728 → 1200px content */
.container-x {
  padding-left: max(var(--gutter), calc((100% - var(--container)) / 2));
  padding-right: max(var(--gutter), calc((100% - var(--container)) / 2));
}

/* ---------- Shared typography ---------- */
.section-head { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.section-head--center { align-items: center; text-align: center; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
  color: var(--c-green);
  text-transform: uppercase;
}
.eyebrow img { flex: none; }

.section-title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--c-text);
  text-transform: uppercase;
}
.section-title--lh16 { line-height: 1.6; }
.section-title--32 { font-size: 32px; line-height: 1.7; }
/* Fixed text-box heights taken from Figma (keeps vertical rhythm identical) */
.title-h32 { height: 32px; }
.title-h39 { height: 39px; }
.title-h74 { height: 74px; }
.title-h83 { height: 83px; }
.title-h90 { height: 90px; }

.text-body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--c-text);
  text-align: justify;
}

.section-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  width: 100%;
}

/* ---------- Buttons ---------- */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 200px;
  padding: 10px 50px 10px 10px;
  border-radius: var(--pill);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
  text-transform: uppercase;
  white-space: nowrap;
  flex: none;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn-pill:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(35, 36, 87, .18); }
.btn-pill__icon {
  display: flex;
  padding: 6px;
  border-radius: var(--pill);
  flex: none;
}
.btn-pill__icon img { width: 20px; height: 20px; }
.btn-pill__icon--dark { background: var(--c-primary); }
.btn-pill__icon--light { background: var(--c-white); }

.btn-pill--white { background: var(--c-white); color: var(--c-primary); padding-right: 40px; }
.btn-pill--outline { background: var(--c-white); color: var(--c-primary); border: 1px solid var(--c-primary); }
.btn-pill--dark { background: var(--c-primary); color: var(--c-white); border: 1px solid var(--c-primary); }
.btn-pill--gap { justify-content: flex-start; gap: 20px; padding: 10px; }
.btn-pill--w230 { width: 230px; }
.btn-pill--w255 { width: 255px; }

.btn-green {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--c-green);
  color: var(--c-bg-soft);
  border-radius: var(--pill);
  font-weight: 700;
  transition: background-color .2s ease, transform .2s ease;
}
.btn-green:hover { background: #0f7a3a; transform: translateY(-2px); }
.btn-green--header {
  width: 200px;
  padding: 10px 20px;
  font-size: 14px;
  line-height: 1.7;
  text-transform: uppercase;
}
.btn-green--lg {
  min-width: 280px;
  padding: 14px 60px;
  font-size: 18px;
  line-height: 1.4;
}

.circle-btn {
  display: flex;
  padding: 10px;
  border: 1px solid;
  border-radius: var(--pill);
  flex: none;
  transition: background-color .2s ease;
}
.circle-btn img { width: 24px; height: 24px; }
.circle-btn--sm { padding: 8px; }
.circle-btn--white { border-color: var(--c-white); }
.circle-btn--white:hover { background: rgba(255, 255, 255, .15); }
.circle-btn--dark { border-color: var(--c-primary); }
.circle-btn--dark:hover { background: rgba(35, 36, 87, .08); }

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  filter: drop-shadow(0 4px 3.5px rgba(35, 36, 87, .16));
  transition: background-color .3s ease;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 120px;
}

.header__brand { display: flex; align-items: center; gap: 5px; flex: none; }
.header__menu-btn img { width: 50px; height: 50px; }
.header__logo img { width: 133px; height: 50px; }

.nav { display: flex; align-items: center; align-self: stretch; }
.nav__link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 12px;
  font-size: 18px;
  font-weight: 500;
  color: var(--c-white);
  white-space: nowrap;
  transition: opacity .2s ease;
}
.nav__link img { width: 20px; height: 20px; }
.nav__link--active { font-weight: 600; }
.nav__link:hover { opacity: .75; }

.header__actions { display: flex; align-items: center; justify-content: flex-end; gap: 30px; flex: none; }
.header__search { display: flex; padding: 10px 12px; }
.header__search img { width: 20px; height: 20px; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  height: 1117px;
  overflow: hidden;
  color: var(--c-white);
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__overlay { position: absolute; inset: 0; background: rgba(35, 36, 87, .74); }

.hero__content {
  position: absolute;
  top: 245px;
  left: max(var(--gutter), calc((100% - var(--container)) / 2));
  right: max(var(--gutter), calc((100% - var(--container)) / 2));
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.hero__title {
  display: flex;
  flex-direction: column;
  height: 266px;
  font-weight: 700;
  text-transform: uppercase;
}
.hero__title-main { font-size: 96px; line-height: 1.4; letter-spacing: 5.76px; }
.hero__title-main--2 { line-height: .99; margin-top: -19px; }
.hero__title-sub { font-size: 36px; line-height: 1.93; margin-top: 9px; }

.hero__body { display: flex; flex-direction: column; gap: 20px; }
.hero__desc {
  width: 649px;
  max-width: 100%;
  font-size: 20px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero__cta { display: flex; align-items: center; gap: 10px; }
.hero__more {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 10px 30px;
  font-size: 20px;
  font-weight: 500;
  border-radius: var(--pill);
  transition: background-color .2s ease;
}
.hero__more:hover { background: rgba(255, 255, 255, .1); }
.hero__more img { width: 24px; height: 24px; }

/* Hero image slider – anchored at x=1007 of 1728 (50% + 143px) */
.hero-slider {
  position: absolute;
  top: 608px;
  left: calc(50% + 143px);
  width: 778px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.hero-slider__track {
  display: flex;
  align-items: center;
  gap: 30px;
  height: 346px;
}
.hero-slide {
  flex: none;
  width: 220px;
  height: 273.813px;
  padding: 7.91px;
  border-radius: var(--radius);
  background: rgba(217, 217, 217, .2);
  cursor: pointer;
  transition: width .45s ease, height .45s ease, padding .45s ease;
}
.hero-slide img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.hero-slide.is-active { width: 278px; height: 346px; padding: 10px; cursor: default; }

.hero-slider__controls {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 30px 0 87px;
}
.hero-slider__line { flex: 1 1 0; min-width: 0; height: 1px; }
.hero-slider__line img { width: 100%; height: 1px; }

/* =========================================================
   DECOR WRAPPERS (concentric symbol behind transparent sections)
   ========================================================= */
.decor { position: relative; overflow: hidden; }
.decor > section { position: relative; z-index: 1; }
.decor__symbol {
  position: absolute;
  z-index: 0;
  max-width: none;
  pointer-events: none;
  user-select: none;
}
/* 184:3239 → page (-163, 682); section starts at y=1117 */
.decor__symbol--about { top: -435px; left: calc(50% - 1027px); width: 1054px; height: 1054px; }
/* 203:5018 → page (-167, 3185); projects start at y=3604 */
.decor__symbol--projects { top: -419px; left: calc(50% - 1031px); width: 1054px; height: 1054px; }
/* 203:5027 → page (939, 4944) */
.decor__symbol--partners { top: 1340px; left: calc(50% + 75px); width: 1240px; height: 1240px; }

/* =========================================================
   ABOUT
   ========================================================= */
.about {
  display: flex;
  flex-direction: column;
  gap: 80px;
  padding-top: 80px;
  padding-bottom: 80px;
}
.about__top { display: flex; align-items: flex-start; gap: 30px; }
.about__intro { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 30px; }
.about__intro .text-body { position: relative; }
.about__actions { display: flex; flex-direction: column; gap: 38px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 20px; }
.socials { display: flex; gap: 24px; }
.socials a { transition: transform .2s ease; }
.socials a:hover { transform: translateY(-3px); }
.socials img { width: 36px; height: 36px; }

.about__quote { position: absolute; width: 63.4608px; height: 42.2526px; max-width: none; pointer-events: none; }
.about__quote--1 { top: 130px; left: -38px; }
.about__quote--2 { top: -19px; left: -1px; }

.about__gallery {
  flex: none;
  width: 586px;
  display: grid;
  grid-template-columns: repeat(2, 278px);
  gap: 30px;
}
.about__gallery img { width: 278px; height: 200px; border-radius: var(--radius); object-fit: cover; }

.about__bottom { display: flex; align-items: flex-start; gap: 30px; }
.about__video {
  position: relative;
  flex: none;
  width: 585px;
  height: 330px;
  border-radius: var(--radius);
  overflow: hidden;
}
.about__video-img { width: 100%; height: 100%; object-fit: cover; }
.about__video::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .44); }
.about__video-play {
  position: absolute;
  z-index: 1;
  left: 248.75px;
  top: 107.2px;
  width: 102.083px;
  height: 116.667px;
  opacity: .4;
  transition: opacity .2s ease, transform .2s ease;
}
.about__video-play img { width: 102.083px; height: 116.667px; }
.about__video:hover .about__video-play { opacity: .8; transform: scale(1.06); }
.about__quote-text { position: relative; flex: 1 1 0; min-width: 0; padding-top: 16px; }

/* =========================================================
   VALUES
   ========================================================= */
.values {
  display: flex;
  flex-direction: column;
  gap: 60px;
  padding-bottom: 80px;
}
.values__list { display: flex; align-items: flex-start; width: 100%; }
.value {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 0 10px;
  font-size: 16px;
  line-height: 1.7;
  color: #000;
  text-align: center;
}
.value__icon {
  display: flex;
  padding: 10px;
  border-radius: var(--radius);
  background: var(--c-bg-soft);
  transition: transform .2s ease, box-shadow .2s ease;
}
.value__icon img { width: 40px; height: auto; }
.value:hover .value__icon { transform: translateY(-4px); box-shadow: 0 8px 18px rgba(35, 36, 87, .1); }

/* =========================================================
   SERVICES
   ========================================================= */
.services {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: 80px;
  padding-bottom: 80px;
  background: var(--c-bg-soft);
}

.service-card {
  position: relative;
  height: 816px;
  padding: 30px;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  color: var(--c-white);
}
.service-card__bg { position: absolute; inset: 0; }
.service-card__bg img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s ease; }
.service-card__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(35, 36, 87, 0), var(--c-primary));
}
.service-card__body { position: relative; display: flex; align-items: flex-end; gap: 30px; height: 270px; }
.service-card__thumb {
  position: relative;
  flex: none;
  width: 260px;
  height: 270px;
  border-radius: var(--radius);
  background: rgba(217, 217, 217, .2);
}
.service-card__thumb img {
  position: absolute;
  left: 9.35px;
  top: 7.8px;
  width: 241.295px;
  height: 254.393px;
  object-fit: cover;
  border-radius: 10px;
}
.service-card__info {
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 30px;
}
.service-card__head { display: flex; align-items: center; gap: 28px; margin-bottom: -16px; }
.service-card__title {
  flex: none;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.service-card__line { flex: 1 1 0; min-width: 0; height: 1px; }
.service-card__line img { width: 100%; height: 1px; }
.service-card__lists { display: flex; gap: 40px; }
.service-card__list { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.service-card__list li {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 0;
  font-size: 14px;
  line-height: normal;
}
.service-card__list img { width: 16px; height: 16px; flex: none; }
.service-card__footer { display: flex; align-items: center; justify-content: space-between; }
.service-card__count { font-size: 24px; font-weight: 700; line-height: 1; }
.service-card__nav { display: flex; gap: 21px; }
.service-card__progress { position: relative; display: flex; gap: 10px; }
.service-card__progress button {
  flex: 1 1 0;
  height: 5px;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, .3);
  transition: background-color .3s ease;
}
.service-card__progress button.is-active { background: var(--c-white); }

.service-card.is-changing .service-card__thumb img,
.service-card.is-changing .service-card__info { opacity: 0; }
.service-card__thumb img,
.service-card__info { transition: opacity .25s ease; }

/* =========================================================
   PROJECTS
   ========================================================= */
.projects {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding-top: 80px;
  padding-bottom: 80px;
}
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; }
.tab {
  padding: 10px 16px;
  border-radius: var(--pill);
  font-size: 16px;
  line-height: normal;
  color: var(--c-sub-body);
  transition: background-color .2s ease, color .2s ease;
}
.tab:hover { color: var(--c-primary); }
.tab.is-active { padding: 10px 20px; background: var(--c-primary); color: var(--c-white); font-weight: 600; }

.projects__grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}
.project {
  position: relative;
  aspect-ratio: 380 / 360.833;
  padding: 16px;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: flex-start;
}
.project img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.project:hover img { transform: scale(1.05); }
.project.is-hidden { display: none; }

.chip {
  position: relative;
  padding: 10px 16px;
  border-radius: var(--pill);
  font-size: 16px;
  line-height: 1.4;
  white-space: nowrap;
}
.chip--orange { background: rgba(255, 128, 0, .15); color: #ff8000; }
.chip--green  { background: rgba(36, 173, 75, .1);  color: #24ad4b; }
.chip--red    { background: rgba(255, 0, 0, .1);    color: #ff0000; }
.chip--purple { background: rgba(153, 0, 255, .15); color: #9900ff; }
.chip--blue   { background: rgba(0, 72, 255, .15);  color: #0048ff; }
.chip--pink   { background: rgba(179, 0, 107, .15); color: #b3006b; }
.chip--gray   { background: rgba(84, 84, 83, .15);  color: #545453; }
.chip--brown  { background: rgba(92, 73, 59, .15);  color: #5c493b; }
.chip--teal   { background: rgba(1, 45, 42, .15);   color: #012d2a; }

/* =========================================================
   PARTNERS
   ========================================================= */
.partners {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding-top: 60px;
  padding-bottom: 100px;
}
.partners__grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 40px;
}
.partners__grid img {
  width: 100%;
  aspect-ratio: 166.67 / 85.67;
  object-fit: cover;
  border-radius: var(--radius);
  transition: transform .25s ease;
}
.partners__grid img.is-contain { object-fit: contain; }
.partners__grid img:hover { transform: scale(1.06); }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonials {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 369px 369px;
  grid-template-rows: 1fr auto;
  column-gap: 40px;
  padding-top: 80px;
  padding-bottom: 80px;
  background: var(--c-bg-soft);
}
.testimonials__intro {
  grid-column: 1;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 50px;
}
.testimonials__text { display: flex; flex-direction: column; gap: 40px; }
.testimonials__cards { display: contents; }
.testimonials__nav {
  grid-column: 3;
  grid-row: 2;
  display: flex;
  justify-content: center;
  gap: 21px;
  margin-top: 40px;
}

.t-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 49px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--c-white);
  animation: fadeUp .4s ease;
}
.t-card:nth-child(1) { grid-column: 2; grid-row: 1 / 3; align-self: start; }
.t-card:nth-child(2) { grid-column: 3; grid-row: 1; justify-content: space-between; gap: 0; }
.t-card__symbol {
  position: absolute;
  left: -236px;
  top: -232px;
  width: 2281.26px;
  height: 2281.26px;
  max-width: none;
  pointer-events: none;
}
.t-card__top,
.t-card__content,
.t-card__author { position: relative; }
.t-card__main { display: flex; flex-direction: column; gap: 49px; }
.t-card__top { display: flex; align-items: center; justify-content: space-between; }
.t-card__avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }
.t-card__stars { display: flex; gap: 6px; }
.t-card__stars img { width: 20px; height: 20px; }
.t-card__content { display: flex; flex-direction: column; gap: 30px; }
.t-card__quote { width: 40px; height: 25.882px; }
.t-card__text { font-size: 16px; line-height: 1.7; text-align: justify; color: var(--c-text); }
.t-card:nth-child(2) .t-card__text {
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.t-card__author { padding-left: 16px; border-left: 3px solid var(--c-green-2); }
.t-card__name { font-size: 24px; font-weight: 700; line-height: 1.7; color: var(--c-sub-body); }
.t-card__role { font-size: 16px; line-height: 1.7; color: #cccccc; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* =========================================================
   NEWS
   ========================================================= */
.news {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding-top: 80px;
  padding-bottom: 80px;
}
.news__grid { display: flex; align-items: flex-start; gap: 30px; }
.news-main { flex: none; width: 585px; display: flex; flex-direction: column; gap: 30px; }
.news-main__img,
.news-item__img { display: block; overflow: hidden; }
.news-main__img { height: 372px; border-radius: var(--radius); }
.news-main__img img,
.news-item__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.news-main__img:hover img,
.news-item__img:hover img { transform: scale(1.05); }
.news-main__body { display: flex; flex-direction: column; gap: 15px; }
.news-main__text { display: flex; flex-direction: column; }

.news__title { font-size: 20px; font-weight: 700; line-height: 1.8; color: var(--c-text); }
.news__title a:hover { color: var(--c-green); }
.news__desc { font-size: 16px; line-height: 1.4; color: var(--c-text); }
.news__desc--justify { text-align: justify; }
.news__more { align-self: flex-end; font-size: 16px; line-height: 1.4; color: var(--c-green); }
.news__more:hover { text-decoration: underline; }

.news__list { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 30px; }
.news-item { display: flex; align-items: stretch; gap: 30px; }
.news-item__img { flex: none; width: 174.829px; height: 141px; border-radius: 11.371px; }
.news-item__body { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact {
  position: relative;
  display: flex;
  justify-content: flex-end;
  padding-top: 80px;
  padding-bottom: 80px;
  background: var(--c-bg-soft);
}
.contact__bg { position: absolute; inset: 0; }
.contact__bg img { width: 100%; height: 100%; object-fit: cover; }
.contact__bg::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .8); }

.contact-form {
  position: relative;
  width: 600px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 30px;
  border-radius: var(--radius);
  background: var(--c-white);
}
.contact-form__fields { display: flex; flex-direction: column; gap: 30px; }
.field-row { display: flex; gap: 30px; }
.field { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.field__label { display: flex; gap: 7px; font-size: 16px; font-weight: 700; line-height: 1.4; color: var(--c-sub-body); }
.field__label em { font-style: normal; color: var(--c-red); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 16px;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  background: var(--c-white);
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  color: var(--c-sub-body);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { height: 146px; resize: none; }
.field input::placeholder,
.field textarea::placeholder { color: var(--c-border); }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(35, 36, 87, .08); }

.field__select { position: relative; display: block; }
.field__select select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.field__select select:invalid { color: var(--c-border); }
.field__select option { color: var(--c-sub-body); }
.field__select img { position: absolute; right: 16px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); pointer-events: none; }

.field__error { display: none; font-size: 13px; color: var(--c-red); }
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea { border-color: var(--c-red); }
.field.is-invalid .field__error { display: block; }

.btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 55px;
  padding: 12px 10px;
  border-radius: var(--pill);
  background: var(--c-green);
  color: var(--c-white);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  transition: background-color .2s ease;
}
.btn-submit:hover { background: #0f7a3a; }
.btn-submit:disabled { opacity: .7; cursor: wait; }
.btn-submit__icon { display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; }
.btn-submit__icon img { width: 16.6667px; height: 15px; }

.contact-form__success {
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(20, 146, 71, .1);
  color: var(--c-green);
  font-weight: 500;
}

/* =========================================================
   CONSULT
   ========================================================= */
.consult {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding-top: 60px;
  padding-bottom: 80px;
}
.consult__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.consultant {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px;
  border: 1px solid var(--c-border-blue);
  border-radius: 16px;
  background: var(--c-bg-soft);
  color: var(--c-primary);
  transition: box-shadow .2s ease, transform .2s ease;
}
.consultant:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(35, 36, 87, .1); }
.consultant > img { width: 50px; height: 50px; object-fit: contain; flex: none; }
.consultant > span { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.consultant strong {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 2px;
  line-height: normal;
}
.consultant strong img { width: 16px; height: 16px; }
.consultant em { font-size: 16px; font-weight: 500; font-style: italic; line-height: normal; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { color: var(--c-white); }
.footer__main {
  display: flex;
  justify-content: center;
  gap: 100px;
  padding-top: 30px;
  padding-bottom: 30px;
  background: var(--c-primary);
}
.footer__brand { flex: none; width: 271px; display: flex; flex-direction: column; gap: 22px; }
.footer__brand > img { width: 221.28px; height: 83.21px; }
.footer__brand p { font-size: 16px; line-height: normal; text-align: justify; }
.footer__contacts { display: flex; flex-direction: column; gap: 10px; }
.footer__contacts li { display: flex; align-items: center; gap: 10px; font-size: 16px; line-height: 28px; }
.footer__contacts img { width: 16px; height: 16px; flex: none; }
.footer__contacts a:hover { text-decoration: underline; }

.footer__right { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 20px; padding-top: 58px; }
.footer h4 { font-size: 18px; font-weight: 700; line-height: 1.4; }
.footer__links { display: flex; gap: 140px; }
.footer__links > div:nth-child(1) { width: 96px; }
.footer__links > div:nth-child(2) { width: 149px; }
.footer__links > div:nth-child(3) { width: 113px; }
.footer__links ul { list-style: disc; padding-left: 20px; }
.footer__links li { font-size: 16px; line-height: 1.6; white-space: nowrap; }
.footer__links li:first-child { line-height: 2.7; }
.footer__links a:hover { text-decoration: underline; }

.footer__connect { display: flex; align-items: flex-start; gap: 76px; }
.footer__connect > div { display: flex; flex-direction: column; gap: 20px; }
.footer__socials { display: flex; gap: 16px; }
.footer__socials img { width: 24px; height: 24px; }
.footer__socials a:hover { opacity: .75; }
.footer__fb { flex: none; }
.footer__fb img { width: 305px; height: 126px; border-radius: 10px; object-fit: cover; }

.footer__bottom {
  padding: 20px 120px;
  background: var(--c-primary-dark);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
}

/* =========================================================
   HEADER – light variant (used while the project lightbox is open)
   ========================================================= */
.header.is-light { background: var(--c-white); transition: none; }
.header.is-light .header__inner { padding-top: 20px; padding-bottom: 20px; transition: none; }
.header.is-light .nav__link { color: var(--c-text); }
.header.is-light .nav__link--active { color: var(--c-primary); }

/* =========================================================
   PROJECT LIGHTBOX  (Figma: MacBook Pro 16" - 4 / 5 / 6)
   ========================================================= */

.lightbox {
  --lb-top: 90px;
  position: fixed;
  top: var(--lb-top);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  /* 763px = tallest design image; the rest is split top/bottom (136 / 128 at 1117px) */
  padding: max(24px, calc((100vh - var(--lb-top) - 763px) / 2 + 4px)) 16px 24px;
  animation: lbFade .25s ease;
}
.lightbox[hidden] { display: none; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .86); }

.lightbox__stage {
  position: relative;
  margin: 0;
  line-height: 0;
}
.lightbox__img {
  max-width: min(971px, calc(100vw - 580px));
  max-height: min(763px, calc(100vh - var(--lb-top) - 264px));
  width: auto;
  height: auto;
  transition: opacity .2s ease;
}
.lightbox__img.is-portrait { max-height: min(730px, calc(100vh - var(--lb-top) - 297px)); }
.lightbox__img.is-loading { opacity: 0; }

.lightbox__close {
  position: absolute;
  z-index: 2;
  top: 37px;
  right: 139px;
  width: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--c-white);
  font-size: 20px;
  font-weight: 500;
  transition: opacity .2s ease;
}
.lightbox__close img { width: 150px; height: 150px; margin-bottom: -24px; }
.lightbox__close:hover { opacity: .75; }

.lightbox__arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(calc(-50% - 12px));
  display: flex;
  padding: 19.048px;
  border: 2.381px solid var(--c-white);
  border-radius: var(--pill);
  transition: background-color .2s ease;
}
.lightbox__arrow img { width: 57.1429px; height: 57.1429px; }
.lightbox__arrow:hover { background: rgba(255, 255, 255, .12); }
.lightbox__arrow--prev { left: 164px; }
.lightbox__arrow--next { right: 164px; }
.lightbox__arrow[hidden] { display: none; }

.lightbox__info-btn,
.lightbox__info {
  position: absolute;
  z-index: 3;
  background: var(--c-white);
  border-radius: 14px;
  filter: drop-shadow(0 4px 5.55px rgba(35, 36, 87, .25));
  line-height: normal;
}
/* anchored to the image: (1143,691) and (1115,678) on a 971×763 image at (379,226) */
.lightbox__info-btn {
  left: 78.68%;
  top: 60.94%;
  width: max-content;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 28px 18px;
  font-size: 16px;
  color: #000;
  white-space: nowrap;
}
.lightbox__info-btn img { width: 24px; height: 24px; }
.lightbox__info-btn:hover { background: var(--c-bg-soft); }
.lightbox__info-btn[hidden] { display: none; }
/* Figma shows product info only on landscape spreads (frame 5/6), not on the portrait cover (frame 4) */
.lightbox.is-portrait .lightbox__info-btn,
.lightbox.is-portrait .lightbox__info,
.lightbox.is-loading .lightbox__info-btn,
.lightbox.is-loading .lightbox__info { display: none; }
.lightbox button:focus-visible { outline: 2px solid rgba(255, 255, 255, .7); outline-offset: 4px; border-radius: 16px; }
.lightbox__info button:focus-visible,
.lightbox__info-btn:focus-visible { outline-color: var(--c-primary); }

.lightbox__info {
  left: 75.8%;
  top: 59.24%;
  width: 370px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  animation: lbFade .2s ease;
}
.lightbox__info[hidden] { display: none; }
.lightbox__info-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.lightbox__info-head span {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--c-primary);
}
.lightbox__info-head img { width: 24px; height: 24px; }
.lightbox__info-list { margin: 0; display: flex; flex-direction: column; }
.lightbox__info-list > div { display: flex; gap: 10px; }
.lightbox__info-list dt,
.lightbox__info-list dd { margin: 0; padding: 8px 0; font-size: 16px; color: var(--c-sub-body); }
.lightbox__info-list dt { flex: none; width: 130px; }
.lightbox__info-list dd { flex: 1 1 0; min-width: 0; }
.lightbox__info-list dd.is-bold { font-weight: 700; }
.lightbox__info-foot {
  padding: 8px;
  border-radius: 10px;
  background: var(--c-bg-soft);
  font-size: 16px;
  line-height: 20px;
  text-align: center;
  color: #000;
}
.lightbox__info-foot strong { color: var(--c-primary); }

@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 1439px) {
  .lightbox__arrow--prev { left: 40px; }
  .lightbox__arrow--next { right: 40px; }
  .lightbox__close { right: 24px; top: 16px; width: 100px; font-size: 16px; }
  .lightbox__close img { width: 100px; height: 100px; margin-bottom: -16px; }
  .lightbox__img { max-width: calc(100vw - 360px); }
}

@media (max-width: 991px) {
  .lightbox { align-items: center; padding: 80px 16px 110px; }
  .lightbox__img,
  .lightbox__img.is-portrait { max-width: calc(100vw - 32px); max-height: calc(100vh - var(--lb-top) - 190px); }
  .lightbox__close { top: 8px; right: 8px; width: 64px; font-size: 14px; }
  .lightbox__close img { width: 64px; height: 64px; margin-bottom: -10px; }
  .lightbox__arrow { top: auto; bottom: 24px; transform: none; padding: 10px; border-width: 2px; }
  .lightbox__arrow img { width: 32px; height: 32px; }
  .lightbox__arrow--prev { left: 16px; }
  .lightbox__arrow--next { right: 16px; }
  /* info floats at the bottom of the viewport, between the arrows */
  .lightbox__stage { position: static; }
  .lightbox__info-btn { left: 50%; top: auto; bottom: 26px; transform: translateX(-50%); padding: 12px 14px; gap: 8px; font-size: 14px; }
  .lightbox__info-btn img { width: 20px; height: 20px; }
  .lightbox__info { left: 50%; top: auto; bottom: 16px; transform: translateX(-50%); width: min(370px, calc(100vw - 32px)); }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1600px) {
  .header__inner { padding-left: 40px; padding-right: 40px; }
}

@media (max-width: 1439px) {
  .nav__link { font-size: 16px; padding: 10px 8px; }
  .header__actions { gap: 12px; }
  .hero-slider { left: calc(50% + 60px); }
}

@media (max-width: 1279px) {
  /* Nav collapses into the drawer */
  .nav { display: none; }
  .header__inner { padding-left: 24px; padding-right: 24px; }

  .hero { height: auto; min-height: 100vh; padding: 160px 0 80px; display: flex; flex-direction: column; gap: 60px; }
  .hero__content { position: relative; top: auto; left: auto; right: auto; padding: 0 max(var(--gutter), calc((100% - var(--container)) / 2)); }
  .hero__title { height: auto; }
  .hero__title-main--2 { margin-top: 0; }
  .hero__title-sub { margin-top: 10px; }
  .hero__title-main { font-size: 80px; line-height: 1.1; }
  .hero__title-sub { font-size: 30px; line-height: 1.6; margin-top: 10px; }
  .hero-slider { position: relative; top: auto; left: auto; width: auto; padding: 0 max(var(--gutter), calc((100% - var(--container)) / 2)); overflow: hidden; }
  .hero-slider__controls { padding-left: 0; }

  .about__top { flex-direction: column; gap: 40px; }
  .about__gallery { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about__gallery img { width: 100%; height: auto; aspect-ratio: 278 / 200; }
  .about__bottom { flex-direction: column; }
  .about__video { width: 100%; height: auto; aspect-ratio: 585 / 330; }
  .about__video-play { left: 50%; top: 50%; transform: translate(-45%, -50%); }
  .about__video:hover .about__video-play { transform: translate(-45%, -50%) scale(1.06); }

  .testimonials { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; row-gap: 40px; }
  .testimonials__intro { grid-column: 1 / -1; grid-row: 1; gap: 30px; }
  .t-card:nth-child(1) { grid-column: 1; grid-row: 2; align-self: stretch; }
  .t-card:nth-child(2) { grid-column: 2; grid-row: 2; gap: 49px; }
  .testimonials__nav { grid-column: 1 / -1; grid-row: 3; margin-top: 0; }

  .news__grid { flex-direction: column; }
  .news-main { width: 100%; }
  .news__list { width: 100%; }

  .footer__main { flex-direction: column; gap: 40px; }
  .footer__brand { width: 100%; max-width: 420px; }
  .footer__right { padding-top: 0; }
  .footer__links { gap: 60px; flex-wrap: wrap; }
}

@media (max-width: 991px) {
  .title-h32, .title-h39, .title-h74, .title-h83, .title-h90 { height: auto; }
  .section-title { font-size: 26px; }
  .section-title--32 { font-size: 28px; line-height: 1.4; }

  .values__list { flex-wrap: wrap; row-gap: 30px; }
  .value { flex: 0 0 33.333%; }

  .service-card { height: auto; min-height: 640px; padding: 20px; }
  .service-card__body { flex-direction: column; align-items: stretch; height: auto; }
  .service-card__thumb { display: none; }
  .service-card__info { height: auto; gap: 24px; }
  .service-card__head { margin-bottom: 0; }

  .projects__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .partners__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }

  .contact { justify-content: center; }
  .consult__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

  .footer__connect { flex-direction: column; gap: 24px; }
  .footer__bottom { padding: 20px var(--gutter); }
}

@media (max-width: 767px) {
  .header__search { display: none; }
  .btn-green--header { width: auto; padding: 8px 16px; font-size: 12px; }
  .header__menu-btn img { width: 40px; height: 40px; }
  .header__logo img { width: 106px; height: 40px; }
  .header__inner,
  .header.is-light .header__inner { padding: 12px var(--gutter); }

  .hero { padding-top: 120px; gap: 40px; min-height: 0; }
  .hero__title-main { font-size: 52px; letter-spacing: 3px; }
  .hero__title-sub { font-size: 22px; }
  .hero__desc { font-size: 17px; }
  .hero__cta { flex-wrap: wrap; }
  .hero__more { padding: 10px 16px; font-size: 18px; }
  .hero-slider__track { height: 260px; gap: 16px; }
  .hero-slide { width: 160px; height: 200px; padding: 6px; }
  .hero-slide.is-active { width: 210px; height: 260px; padding: 8px; }

  .section-row { flex-direction: column; align-items: flex-start; }
  .about, .services, .projects, .testimonials, .news, .contact { padding-top: 56px; padding-bottom: 56px; }
  .about { gap: 56px; }
  .values { gap: 40px; padding-bottom: 56px; }
  .partners { padding-top: 40px; padding-bottom: 60px; }
  .consult { padding-bottom: 56px; }
  .about__quote--1 { left: -8px; top: 110px; opacity: .6; }
  .value { flex-basis: 50%; }

  .service-card__lists { flex-direction: column; gap: 0; }
  .service-card__title { font-size: 20px; white-space: normal; }

  .tabs { justify-content: flex-start; }
  .projects__grid { grid-template-columns: minmax(0, 1fr); }
  .partners__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .partners__grid img { border-radius: 12px; }

  .testimonials { grid-template-columns: minmax(0, 1fr); }
  .t-card:nth-child(1) { grid-column: 1; grid-row: 2; }
  .t-card:nth-child(2) { grid-column: 1; grid-row: 3; }
  .testimonials__nav { grid-row: 4; }

  .news-item { gap: 16px; }
  .news-item__img { width: 120px; height: 100px; }
  .news__title { font-size: 18px; line-height: 1.5; }
  .news__desc--justify { text-align: left; }

  .contact-form { padding: 20px; gap: 24px; }
  .field-row { flex-direction: column; gap: 24px; }
  .contact-form__fields { gap: 24px; }
  .btn-submit { font-size: 16px; }

  .consult__grid { grid-template-columns: minmax(0, 1fr); }

  .footer__links { gap: 32px; }
  .footer__links > div { width: auto !important; }
  .footer__fb img { width: 100%; max-width: 305px; height: auto; aspect-ratio: 305 / 126; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
