/* TegRepipe - Trust Experience Guarantee. Layout after a construction-company template; calm slate + amber. */

@font-face { font-family: "Cabinet Grotesk"; src: url("../fonts/cabinet-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Cabinet Grotesk"; src: url("../fonts/cabinet-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Cabinet Grotesk"; src: url("../fonts/cabinet-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --bg: #ffffff;
  --surface: #f2f4f7;
  --ink: #1d2733;
  --muted: #566170;
  --slate: #1d2733;
  --slate-2: #27343f;
  --nav: #314154;           /* menu bar, dropdown, dark cards */
  --nav-hover: #3d526a;
  --muted-blue: #4a6f96;    /* calm blue for the middle card */
  --on-slate-soft: #b8c2cf;
  --amber: #2f78cf;          /* the accent (blue) */
  --accent-light: #86b9f2;   /* accent on dark grounds */
  --amber-deep: #2362ad;
  --amber-text: #2a67b0;      /* accent for words on a light ground */
  --on-amber: #ffffff;

  --font: "Cabinet Grotesk", "Helvetica Neue", Arial, sans-serif;
  --step-small: clamp(0.8125rem, 0.8rem + 0.08vw, 0.875rem);
  --step-body: clamp(1rem, 0.96rem + 0.14vw, 1.0625rem);
  --step-lead: clamp(1.0625rem, 1rem + 0.28vw, 1.25rem);
  --step-h2: clamp(1.625rem, 1.3rem + 1.1vw, 2.25rem);
  --step-h1: clamp(2.25rem, 1.4rem + 3.2vw, 4rem);

  --margin: clamp(16px, 2.4vw, 32px);
  --gap: clamp(16px, 2vw, 28px);
  --section: clamp(44px, 5vw, 80px);
  --top-h: 92px;
  --nav-h: 70px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: var(--step-body); line-height: 1.6; font-weight: 400; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--amber); color: var(--on-amber); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--margin); top: -60px; z-index: 100; background: var(--amber); color: var(--on-amber); padding: 12px 16px; font-weight: 800; }
.skip:focus { top: 8px; }

.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--margin); }
.section { padding-block: var(--section); }
.hl { color: var(--amber-text); }
.dark .hl, .contact:not(.contact--page) .hl { color: var(--accent-light); }
.sec-h { font-size: var(--step-h2); margin-bottom: 0.55em; }
.sec-h--c { text-align: center; }
.sub { font-size: var(--step-lead); color: var(--muted); max-width: 62ch; }
.h-small { font-size: var(--step-lead); letter-spacing: -0.01em; margin-bottom: 0.7em; }
.text-lg { font-size: var(--step-lead); line-height: 1.55; }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 46px; padding: 0 22px; border: 2px solid transparent; border-radius: 3px;
  font-weight: 800; font-size: var(--step-body); letter-spacing: 0; text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn--amber { background: var(--amber); color: var(--on-amber); }
.btn--white { background: #fff; color: var(--slate); }
.btn--slate { background: var(--slate); color: #fff; }
.btn--line { border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.btn--line-dark { border-color: var(--slate); color: var(--slate); }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: var(--step-small); }
.btn--lg { min-height: 52px; padding: 0 28px; }
@media (hover: hover) and (pointer: fine) {
  .btn--amber:hover { background: var(--amber-deep); }
  .btn--white:hover { background: var(--slate); color: #fff; }
  .btn--slate:hover { background: var(--amber); color: var(--on-amber); }
  .btn--line:hover { background: #fff; color: var(--slate); }
  .btn--line-dark:hover { background: var(--slate); color: #fff; }
}
.link { position: relative; display: inline-block; font-weight: 800; text-decoration: none; padding-bottom: 3px; }
.link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 260ms var(--ease-out); }
.link:hover::after, .link:focus-visible::after { transform: scaleX(1); }

/* ---------- header: white top bar + dark nav bar ---------- */
.head { position: sticky; top: calc(var(--top-h) * -1); z-index: 50; }
.top { background: var(--bg); height: var(--top-h); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: var(--gap); height: 100%; }
.top__logo img { width: 150px; height: auto; }
.top__info { display: flex; gap: clamp(20px, 3vw, 48px); }
.top__info li { display: flex; align-items: center; gap: 12px; font-size: var(--step-small); line-height: 1.35; }
.top__info strong { display: block; font-size: var(--step-body); font-weight: 800; }
.top__info a { text-decoration: none; }
.top__info a:hover { color: var(--amber-text); }
.ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; background: var(--amber); color: var(--on-amber); border-radius: 4px; }
.ico svg { width: 22px; height: 22px; }
.top__call, .top__menu { display: none; }

.nav { background: var(--nav); color: #fff; height: var(--nav-h); }
.nav__in { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: var(--gap); }
.nav__list { display: flex; height: 100%; align-items: stretch; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__link { display: flex; align-items: center; height: 100%; padding-inline: clamp(10px, 1.2vw, 22px); text-decoration: none; font-weight: 500; font-size: clamp(1rem, 0.5vw + 0.75rem, 1.125rem); white-space: nowrap; transition: background-color 200ms ease, color 200ms ease; }
.nav__item.has-sub > .nav__link::after { content: ""; width: 6px; height: 6px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: 0.8; }
.nav__link:hover, .nav__link.is-active { background: var(--nav-hover); color: #fff; }
.nav__toggle { display: none; }
.nav__sub { position: absolute; top: 100%; left: 0; min-width: 280px; padding: 8px 0; background: var(--nav); border-top: 3px solid var(--amber); opacity: 0; visibility: hidden; transform: translateY(6px); transform-origin: top left; transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), visibility 0s 180ms; box-shadow: 0 18px 36px rgba(15, 20, 28, 0.28); /* taste-skill-ignore: real dropdown overlay */ }
.nav__sub a { display: block; padding: 12px 22px; text-decoration: none; font-size: clamp(1rem, 0.3vw + 0.9rem, 1.0625rem); font-weight: 500; transition: background-color 120ms ease, color 120ms ease; }
.nav__sub a:hover, .nav__sub a:focus-visible { background: var(--nav-hover); color: #fff; }
.has-sub:hover .nav__sub, .has-sub:focus-within .nav__sub { opacity: 1; visibility: visible; transform: none; transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), visibility 0s; }
.nav__contact { display: none; }

@media (max-width: 1080px) {
  :root { --top-h: 68px; --nav-h: 0px; }
  .head { top: 0; background: var(--bg); }
  .top__info { display: none; }
  .top__logo img { width: 116px; }
  .top__call { display: inline-flex; margin-left: auto; }
  .top__menu { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; background: var(--slate); color: #fff; border: 0; border-radius: 3px; font-weight: 800; cursor: pointer; transition: transform 160ms var(--ease-out); }
  .top__menu:active { transform: scale(0.97); }
  .nav { position: fixed; inset: var(--top-h) 0 0 0; height: auto; z-index: 49; overflow-y: auto; padding: 16px var(--margin) 120px; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out), visibility 0s 220ms; }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out), visibility 0s; }
  .nav__in { display: block; padding: 0; height: auto; }
  .nav__list { flex-direction: column; height: auto; }
  .nav__item { flex-wrap: wrap; }
  .nav__link { flex: 1; height: auto; padding: 14px 0; font-size: 1.25rem; font-weight: 800; }
  .nav__item.has-sub > .nav__link::after { display: none; }
  .nav__link:hover, .nav__link.is-active { background: transparent; }
  .nav__toggle { display: inline-grid; place-items: center; width: 48px; height: 48px; border: 0; background: rgba(255, 255, 255, 0.08); cursor: pointer; }
  .nav__toggle span { width: 12px; height: 12px; border-right: 3px solid currentColor; border-bottom: 3px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform 200ms var(--ease-out); }
  .nav__toggle[aria-expanded="true"] span { transform: translateY(3px) rotate(-135deg); }
  .nav__sub { position: static; flex-basis: 100%; min-width: 0; padding: 0 0 8px; display: none; opacity: 1; visibility: visible; transform: none; transition: none; background: transparent; border: 0; box-shadow: none; /* taste-skill-ignore */ }
  .nav__sub.is-open { display: block; }
  .nav__sub a { padding: 10px 0 10px 16px; font-size: 1.125rem; color: var(--on-slate-soft); }
  .has-sub:hover .nav__sub:not(.is-open) { display: none; }
  .nav__cta { margin-top: 20px; width: 100%; }
  .nav__contact { display: grid; gap: 6px; margin-top: 24px; font-size: var(--step-lead); }
  .nav__contact a { text-decoration: none; }
  .nav__phone { font-weight: 800; font-size: 1.5rem; }
}
@media (max-width: 480px) { .top__call { font-size: var(--step-small); padding: 0 12px; } }

/* ---------- hero banner slider ---------- */
.hero { position: relative; background: var(--slate); color: #fff; overflow: hidden; }
.hero__stage { position: relative; min-height: clamp(460px, 64vh, 680px); }
.hslide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 800ms ease, visibility 0s 800ms; }
.hslide.is-on { opacity: 1; visibility: visible; transition: opacity 800ms ease, visibility 0s; }
.hslide__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hslide.is-on .hslide__img { animation: drift 9s linear both; }
@keyframes drift { from { transform: scale(1.06); } to { transform: scale(1); } }
.hslide__scrim { display: none; }
.hslide .wrap { position: relative; height: 100%; display: flex; align-items: center; padding-bottom: 72px; }
.hslide__body { padding: clamp(24px, 2.6vw, 38px) clamp(24px, 3vw, 44px); max-width: 600px; background: rgba(36, 49, 64, 0.82); }
.hslide__title { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 0.4em; }
.hslide__text { font-size: var(--step-lead); max-width: 46ch; margin-bottom: 1.3em; line-height: 1.5; }
.hslide__acts { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__ctrl { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; }
.hero__dots { display: flex; gap: 8px; padding-bottom: 28px; }
.hero__dot { width: 36px; height: 6px; padding: 0; border: 0; background: rgba(255, 255, 255, 0.4); cursor: pointer; position: relative; overflow: hidden; }
.hero__dot::after { content: ""; position: absolute; inset: 0; background: var(--amber); transform: scaleX(0); transform-origin: left; }
.hero__dot.is-on::after { transform: scaleX(1); }
.hero__dot.is-run::after { animation: bar 6s linear forwards; }
@keyframes bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero__arrow { position: absolute; z-index: 3; top: 50%; translate: 0 -50%; width: 48px; height: 48px; border: 0; background: rgba(29, 39, 51, 0.6); color: #fff; font-size: 1.4rem; font-weight: 800; cursor: pointer; transition: background-color 160ms ease, transform 160ms var(--ease-out); }
.hero__arrow[data-prev] { left: 0; }
.hero__arrow[data-next] { right: 0; }
.hero__arrow:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .hero__arrow:hover { background: var(--amber); color: var(--on-amber); } }
@media (max-width: 760px) { .hslide .wrap { align-items: flex-end; padding-bottom: 64px; } .hslide__body { max-width: none; width: 100%; } .hero__arrow { display: none; } .hero__stage { min-height: 560px; } }

/* ---------- three cards overlapping the banner ---------- */
.cards3 { position: relative; z-index: 4; margin-top: -76px; }
.cards3__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card3 { padding: clamp(24px, 3vw, 40px) clamp(20px, 2.4vw, 36px); background: var(--nav); color: #fff; text-align: center; display: flex; flex-direction: column; align-items: center; transition: transform 300ms var(--ease-out); }
.card3:nth-child(2) { background: var(--muted-blue); color: #fff; }
.card3__t { font-size: var(--step-lead); margin-bottom: 0.5em; }
.card3__p { max-width: 30ch; margin-bottom: 1.1em; }
@media (hover: hover) and (pointer: fine) { .card3:hover { transform: translateY(-6px); } }
@media (max-width: 800px) { .cards3 { margin-top: 0; } .cards3__grid { grid-template-columns: 1fr; } }

/* ---------- welcome + two image cards ---------- */
.welcome__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.welcome__text { grid-column: 1 / span 6; }
.welcome__cards { grid-column: 7 / span 6; display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.tick { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; margin: 1.2em 0 0; }
.tick a { display: flex; gap: 10px; align-items: baseline; padding: 6px 0; text-decoration: none; color: var(--muted); font-weight: 500; transition: color 160ms ease, transform 200ms var(--ease-out); }
.tick a::before { content: "\00BB"; color: var(--amber-text); font-weight: 800; }
.tick a:hover { color: var(--ink); transform: translateX(4px); }
.icard { display: flex; flex-direction: column; background: var(--bg); outline: 1px solid #e3e7ec; /* taste-skill-ignore: card edge */ transition: transform 300ms var(--ease-out); }
.icard__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); }
.icard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.icard__blank { height: 100%; display: grid; place-items: center; background: var(--slate); color: var(--accent-light); font-weight: 800; font-size: 1.75rem; letter-spacing: -0.03em; }
.icard__body { padding: 20px 18px 22px; text-align: center; display: flex; flex-direction: column; align-items: center; flex: 1; }
.icard__t { font-size: var(--step-lead); color: var(--amber-text); margin-bottom: 0.45em; }
.icard__p { font-size: var(--step-small); color: var(--muted); line-height: 1.55; margin-bottom: 1.1em; flex: 1; }
@media (hover: hover) and (pointer: fine) { .icard:hover { transform: translateY(-4px); } .icard:hover .icard__img img { transform: scale(1.05); } }
@media (max-width: 1000px) { .welcome__text, .welcome__cards { grid-column: 1 / -1; } .welcome__cards { margin-top: 12px; } }
@media (max-width: 560px) { .welcome__cards { grid-template-columns: 1fr; } .tick { grid-template-columns: 1fr; } }

/* ---------- why: text + photos ---------- */
.why { background: var(--surface); }
.why__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.why__text { grid-column: 1 / span 7; max-width: 64ch; }
.why__pics { grid-column: 9 / span 4; display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.why__pics img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.why__b { margin-top: 0; }
@media (max-width: 900px) { .why__text, .why__pics { grid-column: 1 / -1; } }

/* ---------- dark photo section with icons ---------- */
.dark { position: relative; background: var(--slate) url("../img/images/banner3.jpg") center / cover no-repeat; color: #fff; text-align: center; }
.dark::before { content: ""; position: absolute; inset: 0; background: rgba(18, 24, 32, 0.8); }
.dark > .wrap { position: relative; }
.dark .sub { color: var(--on-slate-soft); margin-inline: auto; }
.iconlist { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px) clamp(24px, 6vw, 96px); margin-top: clamp(36px, 5vw, 64px); text-align: left; }
.iconlist a { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 20px; align-items: start; text-decoration: none; }
.iconlist svg { width: 52px; height: 52px; color: var(--accent-light); transition: transform 300ms var(--ease-out); }
.iconlist h3 { font-size: var(--step-lead); margin-bottom: 0.35em; }
.iconlist p { margin: 0; color: var(--on-slate-soft); line-height: 1.55; }
@media (hover: hover) and (pointer: fine) { .iconlist a:hover svg { transform: translateY(-4px); } .iconlist a:hover h3 { color: var(--accent-light); } }
@media (max-width: 800px) { .iconlist { grid-template-columns: 1fr; } }

/* ---------- services grid ---------- */
.svc__head { text-align: center; margin-bottom: clamp(32px, 4vw, 56px); }
.svc__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
@media (max-width: 1000px) { .svc__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .svc__grid { grid-template-columns: 1fr; } }

/* ---------- photos ---------- */
.work { background: var(--surface); }
.work__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: clamp(24px, 3vw, 40px); }
.work__head .sec-h { margin: 0; }
.grid-work { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.grid-work li:nth-child(1), .grid-work li:nth-child(8) { grid-column: span 2; grid-row: span 2; }
.grid-work a, .grid-recent a { display: block; height: 100%; overflow: hidden; background: var(--surface); }
.grid-work img { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform 600ms var(--ease-out); }
.grid-work--page li:nth-child(n) { grid-column: auto; grid-row: auto; }
.grid-work--page { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-recent { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.grid-recent img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 600ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .grid-work a:hover img, .grid-recent a:hover img { transform: scale(1.05); } }
@media (max-width: 900px) { .grid-work { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-work--page { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid-work { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; } .grid-work li:nth-child(8) { grid-column: auto; grid-row: auto; } .grid-recent { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; } }
.badges { padding-top: 32px; }
.badges img { width: auto; height: 80px; }

/* ---------- about (home) ---------- */
.about__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.about__text { grid-column: 1 / span 7; }
.about__p { font-size: var(--step-lead); line-height: 1.6; color: var(--muted); }
.about__side { grid-column: 9 / span 4; }
.about__hours li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; background: var(--surface); margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.about__hours { margin-bottom: 36px; }
.about__news li { margin-bottom: 10px; }
.about__news a { font-weight: 500; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--amber); }
@media (max-width: 900px) { .about__text, .about__side { grid-column: 1 / -1; } }

/* ---------- contact (dark) ---------- */
.contact { background: var(--slate); color: #fff; }
.contact__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.contact__info { grid-column: 1 / span 6; }
.contact__form { grid-column: 8 / span 5; }
.contact__phone { display: block; width: max-content; max-width: 100%; font-weight: 800; font-size: clamp(1.875rem, 1rem + 3vw, 3.25rem); letter-spacing: -0.03em; line-height: 1; white-space: nowrap; text-decoration: none; font-variant-numeric: tabular-nums; margin: 0.2em 0 0.35em; color: var(--accent-light); transition: color 160ms ease; }
.contact__phone:hover { color: #fff; }
.contact__mail { font-size: var(--step-lead); font-weight: 500; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--accent-light); }
.contact__hours { color: var(--on-slate-soft); margin-top: 18px; }
.contact__social { display: flex; gap: 20px; }
.contact .h-small { color: #fff; }
.contact--page { background: var(--bg); color: var(--ink); }
.contact--page .contact__phone { color: var(--amber-text); }
.contact--page .contact__phone:hover { color: var(--ink); }
.contact--page .contact__hours { color: var(--muted); }
.contact--page .h-small { color: var(--ink); margin-top: 1.6em; }
.contact--page .h-small:first-child { margin-top: 0; }
@media (max-width: 900px) { .contact__info, .contact__form { grid-column: 1 / -1; } .contact__form { margin-top: 36px; } }

/* ---------- form ---------- */
.form { display: grid; gap: 14px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* taste-skill-ignore: hidden honeypot */
.field { display: grid; gap: 6px; font-size: var(--step-small); font-weight: 500; }
.field input, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 2px solid transparent; border-radius: 3px; background: var(--surface); color: var(--ink); font: inherit; font-size: var(--step-body); transition: border-color 160ms ease, background-color 160ms ease; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--amber); background: var(--bg); }
.contact:not(.contact--page) .field input, .contact:not(.contact--page) .field textarea { background: rgba(255, 255, 255, 0.08); color: #fff; }
.contact:not(.contact--page) .field input:focus, .contact:not(.contact--page) .field textarea:focus { background: rgba(255, 255, 255, 0.14); }
.contact:not(.contact--page) .field textarea::placeholder { color: var(--on-slate-soft); }
.field.is-bad input, .field.is-bad textarea { border-color: #e5484d; animation: shake 360ms var(--ease-out); }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 6px; }
.form__status { margin: 0; font-weight: 500; }
.form__status .ok { color: #1f9d55; }
.contact:not(.contact--page) .form__status .ok { color: #7ee2a8; }
.form__status .err { color: #e5484d; }
.contact:not(.contact--page) .form__status .err { color: #ffb3b5; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }

/* ---------- inner pages ---------- */
.ptitle { background: var(--slate); color: #fff; padding-block: clamp(18px, 2.2vw, 30px); }
.ptitle__h { font-size: clamp(1.5rem, 1.2rem + 0.9vw, 2rem); letter-spacing: -0.025em; max-width: 40ch; }
.crumbs { font-size: var(--step-small); margin-bottom: 4px; color: var(--on-slate-soft); }
.crumbs a { text-decoration: none; font-weight: 500; }
.crumbs a:hover { color: var(--accent-light); }
.ptitle + .section { padding-top: clamp(28px, 3.4vw, 48px); }
.wide-pic { margin: 0 0 clamp(28px, 4vw, 56px); }
.wide-pic img { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
@media (max-width: 800px) { .cols-2 { grid-template-columns: 1fr; } .wide-pic img { aspect-ratio: 16 / 9; } }
.h-sec { font-size: var(--step-h2); margin-bottom: 0.55em; }
.h-sec--next { margin-top: 1.4em; }

.svc-page + .svc-page { padding-top: 0; }
.svc-rows li + li { margin-top: 8px; }
.svc-row { display: grid; grid-template-columns: 180px minmax(0, 1fr) 40px; gap: clamp(16px, 2.4vw, 36px); align-items: center; padding: 14px; background: var(--surface); text-decoration: none; transition: background-color 220ms ease, color 220ms ease; }
.svc-row__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--slate); display: grid; place-items: center; }
.svc-row__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.svc-row__mark { color: var(--accent-light); font-weight: 800; font-size: 1.75rem; letter-spacing: -0.03em; }
.svc-row__t { display: block; font-weight: 800; font-size: var(--step-lead); letter-spacing: -0.015em; line-height: 1.2; margin-bottom: 8px; }
.svc-row__p { display: block; max-width: 70ch; color: var(--muted); }
.svc-row__go { font-size: 1.5rem; font-weight: 800; color: var(--amber-text); transition: transform 260ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .svc-row:hover { background: var(--slate); color: #fff; } .svc-row:hover .svc-row__p { color: var(--on-slate-soft); } .svc-row:hover img { transform: scale(1.05); } .svc-row:hover .svc-row__go { transform: translateX(6px); color: var(--accent-light); } }
@media (max-width: 700px) { .svc-row { grid-template-columns: 1fr; padding: 12px; } .svc-row__go { display: none; } }

.detail__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.detail__body { grid-column: 1 / span 7; max-width: 66ch; }
.detail__side { grid-column: 9 / span 4; }
.detail__pic { display: block; overflow: hidden; margin-bottom: 18px; }
.detail__pic img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 600ms var(--ease-out); }
.detail__pic:hover img { transform: scale(1.04); }
.detail__call { display: grid; gap: 12px; padding: 22px; background: var(--slate); color: #fff; }
.detail__phone { font-weight: 800; font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem); letter-spacing: -0.03em; line-height: 1; text-decoration: none; color: var(--accent-light); font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .detail__body, .detail__side { grid-column: 1 / -1; } }
.detail-gal .h-sec, .more .h-sec { margin-bottom: 0.5em; }
.detail__body { max-width: none; }
.detail__body .detail__text { max-width: 66ch; }
.detail__body .more { margin-top: 28px; }
.detail__body .more .h-small { margin-bottom: 0.6em; }
.detail__call { margin-top: 12px; }
.side-gal__h { font-size: var(--step-lead); margin: 20px 0 10px; }
.grid-side { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.grid-side a { display: block; overflow: hidden; background: var(--surface); }
.grid-side img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform 500ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .grid-side a:hover img { transform: scale(1.06); } }
.grid-work--compact { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-work--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.more__list { display: flex; flex-wrap: wrap; gap: 8px; }
.more__list a { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 18px; background: var(--surface); text-decoration: none; font-weight: 800; transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out); }
.more__list a:active { transform: scale(0.97); }
.more__list a span { color: var(--amber-text); }
@media (hover: hover) and (pointer: fine) { .more__list a:hover { background: var(--amber); color: var(--on-amber); } .more__list a:hover span { color: inherit; } }

.albums { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.album { text-decoration: none; display: block; }
.album__img { display: block; overflow: hidden; aspect-ratio: 4 / 3; margin-bottom: 14px; background: var(--surface); }
.album__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.album:hover .album__img img { transform: scale(1.05); }
.album__t { font-weight: 800; font-size: var(--step-lead); }
.album__n { color: var(--amber-text); margin-left: 6px; }
@media (max-width: 700px) { .albums { grid-template-columns: 1fr; } }

.news { display: grid; gap: var(--gap); }
.news__item { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 3vw, 44px); align-items: center; text-decoration: none; }
.news__img { display: block; overflow: hidden; aspect-ratio: 4 / 3; }
.news__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.news__item:hover .news__img img { transform: scale(1.05); }
.news__t { display: block; font-weight: 800; font-size: var(--step-h2); letter-spacing: -0.025em; line-height: 1.12; margin-bottom: 10px; }
.news__p { display: block; color: var(--muted); font-size: var(--step-lead); line-height: 1.55; }
@media (max-width: 800px) { .news__item { grid-template-columns: 1fr; } }

.reviews__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.rev-card { display: flex; justify-content: space-between; align-items: flex-end; min-height: clamp(150px, 16vw, 220px); padding: clamp(22px, 2.6vw, 36px); background: var(--slate); color: #fff; text-decoration: none; transition: transform 160ms var(--ease-out); }
.rev-card--alt { background: var(--amber); color: var(--on-amber); }
.rev-card:active { transform: scale(0.99); }
.rev-card__name { font-weight: 800; font-size: var(--step-h1); letter-spacing: -0.03em; line-height: 1; }
.rev-card__go { font-size: 1.75rem; font-weight: 800; transition: transform 260ms var(--ease-out); }
.rev-card:hover .rev-card__go { transform: translate(6px, -6px); }
@media (max-width: 700px) { .reviews__grid { grid-template-columns: 1fr; } }

.callout { background: var(--amber); color: var(--on-amber); padding-block: clamp(40px, 4.4vw, 68px); }
.callout__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.callout__h { font-size: var(--step-h2); letter-spacing: -0.025em; max-width: 28ch; }
.callout__act { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.callout__phone { font-weight: 800; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); letter-spacing: -0.03em; line-height: 1; text-decoration: none; font-variant-numeric: tabular-nums; }

/* ---------- footer ---------- */
.foot { background: var(--slate); color: var(--on-slate-soft); padding-top: clamp(28px, 3vw, 44px); }
.foot__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap) clamp(24px, 4vw, 56px); }
.foot__logo { display: inline-block; background: #fff; padding: 8px 12px; margin-bottom: 16px; }
.foot__logo img { width: 130px; height: auto; }
.foot__about { font-size: var(--step-small); line-height: 1.6; max-width: 38ch; }
.foot__h { font-size: var(--step-body); color: #fff; margin-bottom: 10px; }
.foot__list li { margin-bottom: 4px; font-size: var(--step-small); }
.foot__cols a { text-decoration: none; transition: color 160ms ease; }
.foot__cols a:hover { color: var(--accent-light); }
.foot__big { font-weight: 800; font-size: var(--step-lead); color: #fff; }
.foot p { margin: 0 0 4px; font-size: var(--step-small); }
.foot__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 22px; padding-block: 14px 18px; font-size: var(--step-small); }
.foot__legal a { color: #fff; }
@media (max-width: 900px) { .foot__cols { grid-template-columns: 1fr 1fr; row-gap: 20px; } }
@media (max-width: 520px) { .foot__cols { grid-template-columns: 1fr; } }

/* ---------- mobile call bar ---------- */
.callbar { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: 68px; }
  .callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr auto; padding-bottom: env(safe-area-inset-bottom); background: var(--amber); }
  .callbar a { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 60px; text-decoration: none; color: var(--on-amber); font-weight: 800; }
  .callbar__call strong { font-size: 1.25rem; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
  .callbar__call span { font-weight: 500; }
  .callbar__msg { padding: 0 20px; background: var(--slate); color: #fff !important; }
  .callbar a:active { opacity: 0.85; }
}

/* ---------- lightbox ---------- */
.lightbox { border: 0; padding: 0; max-width: none; max-height: none; width: 100vw; height: 100dvh; background: rgba(18, 24, 32, 0.94); color: #fff; }
.lightbox[open] { display: grid; place-items: center; animation: lb-in 220ms var(--ease-out); }
.lightbox::backdrop { background: transparent; }
.lightbox img { max-width: min(92vw, 1400px); max-height: 84dvh; width: auto; height: auto; object-fit: contain; }
.lightbox__close, .lightbox__nav { position: absolute; border: 0; background: rgba(255, 255, 255, 0.12); color: #fff; width: 52px; height: 52px; font-size: 1.6rem; cursor: pointer; transition: background-color 160ms ease, transform 160ms var(--ease-out); }
.lightbox__close:active, .lightbox__nav:active { transform: scale(0.94); }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--amber); color: var(--on-amber); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 16px; top: 50%; translate: 0 -50%; }
@keyframes lb-in { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* neighbouring plain sections share one gap (coloured bands keep their own) */
.section:not(.why):not(.dark):not(.work):not(.contact):not(.svc) + .section:not(.why):not(.dark):not(.work):not(.contact) { padding-top: 0; }
