/* THAI Media — фотографии Таиланда, тушь-индиго, морская бирюза, золото храмов */
:root {
  --paper: #eef1ec;
  --ink: #14183a;
  --ink-soft: #4a5070;
  --line: rgba(20, 24, 58, .16);
  --indigo: #1b2046;
  --teal: #0e5a52;
  --gold: #b88a1c;
  --gold-dark: #87610c;
  --red: #a3302a;
  --white: #f8faf7;
  --font: "Commissioner", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1240px;
  --pad: clamp(20px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--white); padding: 10px 16px; z-index: 20; }
.skip:focus { left: 8px; top: 8px; }
.mt { margin-top: 28px; }

.c-indigo { --c: var(--indigo); }
.c-teal { --c: var(--teal); }

/* Фоновые фото */
.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }

/* Шапка */
.top { position: relative; z-index: 5; border-bottom: 1px solid var(--line); }
.top-over { position: absolute; left: 0; right: 0; top: 0; border-color: rgba(255, 255, 255, .2); color: var(--white); }
.top-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; line-height: 1; }
.logo-mark { width: 38px; height: 38px; flex: none; }
.lm-sky { fill: #e3b54a; } .lm-sun { fill: #fff4d6; }
.lm-w1 { fill: #3fa596; } .lm-w2 { fill: var(--teal); } .lm-w3 { fill: var(--indigo); }
.top-over .lm-w3, .foot .lm-w3 { fill: #2c3570; }
.logo-word { display: inline-flex; align-items: baseline; gap: .28em; font-size: 1.3rem; font-weight: 300; letter-spacing: -.01em; }
.logo-word b { font-weight: 800; letter-spacing: .04em; }
.nav { display: flex; gap: clamp(16px, 3vw, 36px); font-weight: 500; }
.nav a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: currentColor; }

/* Главный экран */
.hero {
  position: relative; isolation: isolate; color: var(--white);
  min-height: min(100svh, 900px); display: flex; flex-direction: column; justify-content: flex-end;
  padding: 140px 0 28px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 14, 40, .55) 0%, rgba(10, 14, 40, 0) 28%),
    linear-gradient(0deg, rgba(10, 14, 40, .85) 0%, rgba(10, 14, 40, .35) 45%, rgba(10, 14, 40, 0) 70%);
}
.hero .bg { object-position: 50% 60%; }
.hero-in { width: 100%; }
.hero-kicker { margin: 0 0 14px; font-weight: 500; font-size: 1.05rem; opacity: .9; }
.hero-title {
  margin: 0 0 22px; max-width: 15ch;
  font-size: clamp(2.6rem, 7vw, 6rem); font-weight: 800; line-height: .98; letter-spacing: -.04em;
  text-wrap: balance;
}
.hero-sub { margin: 0 0 32px; max-width: 46ch; font-size: clamp(1.1rem, 1.6vw, 1.3rem); font-weight: 300; line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Первый экран: появление */
.hero { overflow: hidden; }
.hero .bg { animation: kb 18s ease-out both; transform-origin: 60% 60%; }
@keyframes kb { from { transform: scale(1.12); } to { transform: scale(1); } }
.hl { display: inline-block; animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.hl:nth-child(2) { animation-delay: .12s; }
.hl:nth-child(3) { animation-delay: .24s; }
.hl-gold { color: #f0c457; }
.hero-sub, .hero-actions, .hero-kicker { animation: fade 1s .45s both; }
@keyframes rise { from { opacity: 0; transform: translateY(.5em); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* Услуги на главной: карточки с картинками */
.st-grid { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.st { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px rgba(20, 24, 58, .35); transition: transform .35s ease, box-shadow .35s ease; }
.st:hover { transform: translateY(-6px); box-shadow: 0 1px 0 var(--line), 0 30px 50px -24px rgba(20, 24, 58, .45); }
.st-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--indigo); }
.st-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transition: transform .6s ease; }
.st:hover .st-media img { transform: scale(1.05); }
.st-app .st-media { background: radial-gradient(circle at 50% 120%, #8aa35a, #4b6131 70%); }
.st-app .st-media img { position: absolute; top: 7%; left: 24%; width: 52%; height: auto; border-radius: 14px 14px 0 0; border: 4px solid #1c2412; border-bottom: 0; box-shadow: 0 16px 30px rgba(0, 0, 0, .35); }
.st-cover .st-media img { object-position: 50% 50%; }
.st-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.st-body .h3 { font-size: clamp(1.2rem, 1.5vw, 1.4rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin: 0 0 10px; }
.st-body p { margin: 0 0 16px; color: var(--ink-soft); font-size: .98rem; }
.st-ex { margin-top: auto; font-weight: 600; font-size: .92rem; color: var(--gold-dark); text-decoration: none; }
.st-ex:hover { text-decoration: underline; }

/* Как мы работаем */
.flow { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); counter-reset: none; }
.flow li { position: relative; padding-top: 22px; border-top: 2px solid var(--ink); }
.flow li::after { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); }
.fl-n { display: block; font-size: clamp(3.4rem, 6vw, 5rem); font-weight: 800; line-height: 1; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px var(--gold); margin-bottom: 8px; }
.flow .h3 { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; margin: 0 0 8px; }
.flow p { margin: 0; color: var(--ink-soft); }

/* Услуги на главной (старое) */
.svc-grid { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px clamp(20px, 3vw, 40px); }
.svc-grid li { border-top: 3px solid var(--ink); padding-top: 18px; }
.svc-grid .h3 { font-size: clamp(1.3rem, 1.8vw, 1.6rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 10px; }
.svc-grid p { margin: 0; color: var(--ink-soft); }

/* Фотополоса */
.photo-band { position: relative; isolation: isolate; color: var(--white); padding: clamp(96px, 13vw, 168px) 0; }
.photo-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20, 24, 58, .9) 0%, rgba(20, 24, 58, .7) 55%, rgba(20, 24, 58, .45) 100%); }
.photo-band-in { align-items: end; }

/* Блоки */
.block { padding: clamp(64px, 9vw, 120px) 0; }
.block-top0 { padding-top: 0; }
.block-dark { background: var(--ink); color: var(--white); }
.two { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 6vw, 96px); align-items: start; }
.h1 { font-size: clamp(2.6rem, 6vw, 4.75rem); font-weight: 800; line-height: 1; letter-spacing: -.04em; margin: 0 0 20px; }
.h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 800; line-height: 1.05; letter-spacing: -.03em; margin: 0 0 24px; text-wrap: balance; }
.h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.3; margin: 0 0 6px; }
.prose p { margin: 0 0 1em; max-width: 60ch; font-size: 1.125rem; }
.lead { font-size: clamp(1.2rem, 1.9vw, 1.45rem); line-height: 1.5; max-width: 40ch; margin: 0; }
.block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.block-head a { font-weight: 600; }

/* Проекты: крупный список */
.projs { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, .25); }
.proj {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 12px 40px; align-items: baseline;
  padding: clamp(18px, 2.4vw, 28px) 0; border-bottom: 1px solid rgba(255, 255, 255, .25);
}
.proj-name { margin: 0; font-size: clamp(1.7rem, 4vw, 3.1rem); font-weight: 800; line-height: 1.05; letter-spacing: -.035em; }
.proj-name a { text-decoration: none; background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 3px no-repeat; transition: background-size .35s; }
.proj-name a:hover, .proj-name a:focus-visible { background-size: 100% 3px; }
.proj-info p { margin: 0; }
.proj-kind { color: var(--gold); font-weight: 600; }
.proj-text { margin-top: 4px !important; opacity: .85; max-width: 44ch; }

/* Страница направления */
.dhero {
  position: relative; isolation: isolate; color: var(--white);
  min-height: clamp(460px, 70vh, 680px); display: flex; align-items: flex-end;
  padding: 140px 0 clamp(40px, 6vw, 72px);
}
.dhero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 14, 40, .55) 0%, rgba(10, 14, 40, 0) 30%),
    linear-gradient(0deg, color-mix(in srgb, var(--c) 92%, transparent) 0%, color-mix(in srgb, var(--c) 40%, transparent) 50%, transparent 80%);
}
.dhero-in { width: 100%; }
.dhero-name { font-size: clamp(3.4rem, 12vw, 10rem); font-weight: 800; line-height: .9; letter-spacing: -.055em; margin: 0 0 16px; }
.dhero-title { margin: 0; font-size: clamp(1.15rem, 1.9vw, 1.45rem); max-width: 40ch; }
.svc { list-style: none; margin: 0 0 36px; padding: 0; }
.svc li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.svc li:first-child { padding-top: 0; }
.svc p { margin: 0; color: var(--ink-soft); max-width: 60ch; }
.extra { margin-bottom: 32px; }
.tags { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { border: 1px solid var(--ink); padding: 5px 14px; border-radius: 999px; font-size: .95rem; }
.note { margin: 0; padding-left: 16px; border-left: 3px solid var(--gold); max-width: 60ch; }

/* Карточки проектов */
.pcards { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(28px, 3vw, 40px) clamp(20px, 2.4vw, 32px); }
.pc { position: relative; display: flex; flex-direction: column; }
.pc-wide:nth-child(1) { grid-column: span 7; }
.pc-wide:nth-child(2) { grid-column: span 5; }
.pc-third { grid-column: span 4; }
.pc-media { position: relative; overflow: hidden; border-radius: 14px; background: #232850; aspect-ratio: 16 / 9; }
.pc-wide .pc-media { aspect-ratio: auto; height: clamp(240px, 28vw, 380px); }
.pc-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s ease; }
.pc-phones { display: flex; justify-content: center; gap: 6%; padding: 9% 8% 0; background: radial-gradient(circle at 50% 120%, #8aa35a, #4b6131 70%); }
.pc-phones img { width: 40%; height: auto; align-self: flex-start; border-radius: 16px 16px 0 0; border: 5px solid #1c2412; border-bottom: 0; box-shadow: 0 20px 40px rgba(0, 0, 0, .35); }
.pc-phones img:last-child { margin-top: 10%; }
.pc-soon { display: flex; align-items: flex-end; padding: 22px; background: repeating-linear-gradient(135deg, #1e2348 0 14px, #232850 14px 28px); }
.pc-soon span { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 800; line-height: 1; letter-spacing: -.03em; color: rgba(248, 250, 247, .35); }
.pc-body { padding-top: 18px; }
.pc-kind { margin: 0 0 4px; color: var(--gold); font-weight: 600; font-size: .95rem; }
.pc-name { margin: 0 0 8px; font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 800; line-height: 1.05; letter-spacing: -.03em; }
.pc-name a { text-decoration: none; background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 3px no-repeat; transition: background-size .35s; }
.pc-name a::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.pc-link:hover .pc-name a, .pc-name a:focus-visible { background-size: 100% 3px; }
.pc-link:hover .pc-media img { transform: scale(1.03); }
.pc-text { margin: 0; opacity: .8; max-width: 46ch; }

/* Простые страницы */
.phead { padding: clamp(48px, 7vw, 96px) 0 clamp(32px, 5vw, 56px); }

/* Страница проекта */
.crumbs { margin: 0 0 28px; font-weight: 600; }
.phead-proj .proj-kind { margin: 0 0 10px; color: var(--gold-dark); }
.lead-wide { max-width: 52ch; margin-bottom: 32px; }
.pshow { padding-bottom: clamp(16px, 3vw, 32px); }
.frame { margin: 0; border-radius: 14px; overflow: hidden; background: var(--white); box-shadow: 0 30px 80px -30px rgba(20, 24, 58, .45), 0 0 0 1px var(--line); }
.frame-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px; background: var(--ink); color: rgba(248, 250, 247, .7); font-size: .85rem; }
.frame-bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(248, 250, 247, .25); }
.frame-bar span { margin: 0 auto; padding: 2px 18px; border-radius: 6px; background: rgba(248, 250, 247, .1); }
.frame img, .pbanner img { width: 100%; height: auto; }
.pbanner { margin: 0; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 80px -30px rgba(20, 24, 58, .45); }
.phones { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 32px); padding: clamp(32px, 5vw, 64px) clamp(20px, 4vw, 56px); border-radius: 20px; background: var(--ink); }
.phone { margin: 0; }
.phone img { width: 100%; height: auto; border-radius: 22px; border: 6px solid #2a2f55; }
.phone figcaption { margin-top: 12px; color: rgba(248, 250, 247, .75); font-size: .92rem; text-align: center; }
.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); align-items: start; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: auto; border-radius: 10px; }
.gallery figcaption { margin-top: 12px; color: rgba(248, 250, 247, .75); font-size: .95rem; }
.g-mobile { grid-column: span 4; grid-row: span 2; }
.g-desktop { grid-column: span 8; }
.g-cover { grid-column: span 4; }
.pnext { padding: clamp(48px, 7vw, 88px) 0; }
.pnext p { margin: 0 0 6px; color: var(--ink-soft); }
.pnext a { font-size: clamp(1.9rem, 4.4vw, 3.4rem); font-weight: 800; line-height: 1.05; letter-spacing: -.035em; text-decoration: none; background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 3px no-repeat; transition: background-size .35s; }
.pnext a:hover, .pnext a:focus-visible { background-size: 100% 3px; }

/* Призыв на фото залива */
.cta { position: relative; isolation: isolate; color: var(--white); padding: clamp(96px, 14vw, 180px) 0; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 14, 40, .82) 0%, rgba(10, 14, 40, .45) 60%, rgba(10, 14, 40, .2) 100%); }
.cta-in { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-text { margin: 0; font-size: clamp(1.6rem, 3.4vw, 2.7rem); font-weight: 800; line-height: 1.1; letter-spacing: -.03em; max-width: 22ch; text-wrap: balance; }

/* Кнопки */
.btn {
  display: inline-block; background: var(--gold); color: var(--ink); font: 600 1rem/1 var(--font);
  padding: 17px 28px; border: 2px solid var(--gold); border-radius: 999px; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn:hover { background: #d3a434; border-color: #d3a434; }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .7); }
.btn-ghost:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-light { background: var(--white); border-color: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--gold); border-color: var(--gold); }

/* Контакты */
.contact-big { font-size: clamp(1.5rem, 3.2vw, 2.4rem); font-weight: 800; letter-spacing: -.02em; margin: 0 0 12px; word-break: break-word; }
.form { display: grid; gap: 18px; }
.form label { display: grid; gap: 6px; font-weight: 500; }
.form input, .form select, .form textarea {
  font: inherit; color: var(--ink); background: var(--white);
  border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; width: 100%;
}
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 3px solid var(--gold); outline-offset: 0; border-color: var(--ink); }
.form .btn { justify-self: start; }
.form-hint { margin: 0; font-size: .9rem; color: var(--ink-soft); }

/* Подвал */
.foot { background: var(--ink); color: rgba(248, 250, 247, .8); padding: 56px 0 28px; font-size: .95rem; }
.block-dark + .foot, .cta + .foot { border-top: 1px solid rgba(255, 255, 255, .12); }
.foot-grid { display: grid; grid-template-columns: 4fr 5fr 3fr; gap: 32px; }
.foot p { margin: 0 0 8px; max-width: 40ch; }
.foot a { color: var(--white); }
.foot-brand { display: flex; align-items: center; gap: 10px; color: var(--white); margin-bottom: 14px !important; }

.foot-list { list-style: none; margin: 0; padding: 0; }
.foot-list li { margin-bottom: 6px; }
.foot-list a { font-weight: 600; }
.foot-copy { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .82rem; color: rgba(248, 250, 247, .6); }
.foot-copy p { max-width: none; }
.credits a { color: inherit; }

@media (max-width: 860px) {
  .two, .foot-grid, .proj { grid-template-columns: 1fr; }
  .svc-grid, .st-grid, .flow { grid-template-columns: 1fr 1fr; }
  .proj { gap: 6px; }
  .g-cover { grid-column: span 6; }
  .phones { grid-template-columns: 1fr 1fr; }
  .pc-wide:nth-child(1), .pc-wide:nth-child(2) { grid-column: span 12; }
  .pc-third { grid-column: span 6; }
  .pc-third:last-child { grid-column: span 12; }
}
@media (max-width: 560px) {
  .top-bar { flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 14px; padding-bottom: 10px; }
  .nav { gap: 18px; font-size: .95rem; }
  .hero { padding-top: 150px; }
  .dhero { padding-top: 150px; }
  .btn { padding: 15px 22px; }
  .svc-grid, .st-grid, .flow { grid-template-columns: 1fr; }
  .g-mobile, .g-desktop, .g-cover { grid-column: span 12; grid-row: auto; }
  .g-mobile { max-width: 320px; }
  .pc-third, .pc-third:last-child { grid-column: span 12; }
  .frame-bar span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before { transition: none !important; animation: none !important; }
}
