@font-face {
  font-family: "Dere Sans";
  src: url("../fonts/nimbus-sans-regular.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Dere Sans";
  src: url("../fonts/nimbus-sans-bold.woff") format("woff");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #0b3f3e;
  --ink-deep: #052f30;
  --green: #00524d;
  --green-light: #087269;
  --paper: #f6f3ed;
  --paper-light: #fcfbf8;
  --gold: #ad8046;
  --gold-light: #d4b27d;
  --line: rgba(7, 57, 56, 0.12);
  --shadow-sm: 0 8px 26px rgba(16, 47, 43, 0.07);
  --shadow-lg: 0 15px 38px rgba(12, 48, 44, 0.12);
  --header-height: clamp(90px, 6vw, 110px);
  --page-gutter: clamp(24px, 4vw, 76px);
  --content-width: 1760px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink-deep);
  background: var(--paper);
  font-family: "Dere Sans", Arial, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
.icon { display: block; flex: 0 0 auto; background-color: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.icon--phone { --icon: url("../icons/phone.svg"); }
.icon--arrow { --icon: url("../icons/arrow-right.svg"); }
.icon--menu { --icon: url("../icons/menu.svg"); }
.icon--mail { --icon: url("../icons/mail.svg"); }
.icon--pin { --icon: url("../icons/pin.svg"); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 10px 14px; color: #fff; background: var(--ink-deep); border-radius: 6px; transform: translateY(-160%); transition: transform 160ms ease; }
.skip-link:focus { transform: translateY(0); }

.site-shell { min-width: 320px; min-height: 100vh; min-height: 100svh; overflow: clip; }

.site-header {
  position: relative;
  z-index: 20;
  height: var(--header-height);
  background: rgba(253, 252, 249, 0.98);
  border-bottom: 1px solid rgba(7, 57, 56, 0.1);
  box-shadow: 0 6px 24px rgba(16, 43, 39, 0.045);
}

.site-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 3%, rgba(178, 135, 79, 0.4) 28%, transparent 66%);
}

.header-inner {
  width: calc(100% - (var(--page-gutter) * 2));
  max-width: var(--content-width);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand-logo { display: block; width: auto; max-width: min(320px, 27vw); max-height: clamp(48px, 4.2vw, 68px); object-fit: contain; }

.brand-name {
  white-space: nowrap;
  font-family: "Dere Sans", Arial, sans-serif;
  font-size: clamp(34px, 2.2vw, 43px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.075em;
}

.desktop-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(26px, 2.4vw, 46px);
  font-size: clamp(14px, 0.9vw, 17px);
  font-weight: 700;
}

.desktop-nav a { position: relative; padding: 13px 0; white-space: nowrap; letter-spacing: -.01em; transition: color 180ms ease; }
.desktop-nav a::after { content: ""; position: absolute; right: 0; bottom: 2px; left: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 200ms ease; }
.desktop-nav a:hover, .desktop-nav a:focus-visible { color: var(--green-light); }
.desktop-nav a:hover::after, .desktop-nav a:focus-visible::after { transform: scaleX(1); }
.desktop-nav a[aria-current="page"] { color: var(--green-light); }
.desktop-nav a[aria-current="page"]::after { transform: scaleX(1); }

.call-button {
  min-width: clamp(158px, 9.7vw, 185px);
  height: clamp(52px, 3.3vw, 61px);
  margin-left: clamp(30px, 2.4vw, 46px);
  padding: 0 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  color: #fff;
  background: #07504c;
  border: 1px solid #06413e;
  border-radius: 7px;
  font-size: clamp(15px, 0.9vw, 17px);
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(0, 61, 57, 0.13);
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.call-button .icon { width: 22px; height: 22px; }
.call-button:hover, .call-button:focus-visible { background: #063f3c; border-color: #063633; box-shadow: 0 7px 16px rgba(0, 55, 51, 0.16); }
.mobile-menu { display: none; }

.products-section { position: relative; background: radial-gradient(circle at 15% 5%, rgba(255,255,255,.95), transparent 31%), linear-gradient(150deg, #faf8f3 0%, #f3f0e8 100%); }
.products-section::before { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 34%; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(220,226,215,.17)); }

.products-inner { position: relative; width: calc(100% - (var(--page-gutter) * 2)); max-width: var(--content-width); margin: 0 auto; padding: clamp(42px, 3vw, 58px) 0 clamp(52px, 3.7vw, 70px); }

.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 44px; margin-bottom: clamp(29px, 2.2vw, 42px); }
.section-heading > div { position: relative; padding-left: 21px; }
.section-heading > div::before { content: ""; position: absolute; top: 2px; bottom: 2px; left: 0; width: 2px; background: linear-gradient(180deg, var(--gold-light), var(--gold)); }
.section-kicker { display: block; margin-bottom: 8px; color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .19em; text-transform: uppercase; }
.section-heading h1 { margin: 0; font-family: "Dere Sans", Arial, sans-serif; font-size: clamp(39px, 2.65vw, 51px); font-weight: 400; line-height: .98; letter-spacing: -.04em; }
.section-heading > p { max-width: 520px; margin: 0 0 3px; color: rgba(5,47,48,.62); font-size: clamp(14px, .9vw, 17px); line-height: 1.55; }

.products-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 1.35vw, 26px); }
.product-card { position: relative; min-width: 0; overflow: hidden; display: flex; flex-direction: column; background: rgba(255,255,255,.9); border: 1px solid rgba(7,57,56,.1); border-radius: 13px; box-shadow: var(--shadow-sm); transition: box-shadow 220ms ease, border-color 220ms ease; }
.product-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; border: 1px solid rgba(255,255,255,.55); border-radius: inherit; }
.product-card:hover, .product-card:focus-visible { z-index: 2; outline: none; border-color: rgba(173,128,70,.48); box-shadow: var(--shadow-lg); }
.product-image, .product-image--second-row { display: block; width: 100%; aspect-ratio: 1.84 / 1; height: auto; flex: 0 0 auto; object-fit: cover; filter: saturate(.91) contrast(1.025); transition: filter 200ms ease; }
.product-card:hover .product-image, .product-card:focus-visible .product-image { filter: saturate(1) contrast(1.04); }
.product-meta { position: relative; z-index: 1; min-height: clamp(62px, 3.75vw, 72px); padding: 0 clamp(20px, 1.35vw, 26px); display: flex; align-items: center; justify-content: space-between; gap: 12px; background: linear-gradient(112deg, #fff 0%, #faf8f3 100%); border-top: 1px solid rgba(7,57,56,.075); }
.product-meta strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: clamp(18px, 1.08vw, 21px); font-weight: 700; line-height: 1.2; letter-spacing: -.018em; }
.product-meta .icon { width: 25px; height: 25px; color: var(--gold); transition: color 180ms ease; }
.product-card:hover .product-meta .icon, .product-card:focus-visible .product-meta .icon { color: var(--gold); }

.site-footer {
  position: relative;
  overflow: hidden;
  color: rgba(255,255,255,.84);
  background: radial-gradient(circle at 10% 5%, rgba(25,112,103,.22), transparent 31%), linear-gradient(115deg, #073e3d 0%, #00504b 52%, #063537 100%);
  box-shadow: inset 0 1px rgba(255,255,255,.08);
}
.site-footer::before { content: ""; position: absolute; top: -310px; right: -170px; width: 620px; height: 620px; pointer-events: none; border: 1px solid rgba(212,178,125,.08); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.012), 0 0 0 140px rgba(212,178,125,.016); }
.site-footer::after { content: ""; position: absolute; top: 0; right: 0; left: 0; height: 2px; background: linear-gradient(90deg, transparent 3%, var(--gold) 24%, rgba(178,135,79,.2) 61%, transparent 94%); opacity: .8; }
.footer-inner { position: relative; z-index: 1; width: calc(100% - (var(--page-gutter) * 2)); max-width: var(--content-width); margin: 0 auto; padding-top: clamp(40px, 2.8vw, 52px); }
.footer-top { display: grid; grid-template-columns: 1.2fr .75fr .88fr 1fr; gap: clamp(40px, 4.2vw, 80px); padding-bottom: clamp(34px, 2.5vw, 46px); }
.brand--footer { color: #fff; }
.brand-logo--footer { max-width: min(300px, 100%); max-height: 62px; }
.brand--footer .brand-name { font-size: clamp(33px, 2.2vw, 42px); }
.footer-about p { max-width: 350px; margin: 18px 0 0; color: rgba(255,255,255,.66); font-size: clamp(14px, .86vw, 16px); line-height: 1.68; }
.footer-column { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.footer-column h2 { margin: 6px 0 10px; color: #fff; font-family: "Dere Sans", Arial, sans-serif; font-size: clamp(17px, 1vw, 19px); font-weight: 700; line-height: 1.1; letter-spacing: -.018em; }
.footer-title-line { width: 34px; height: 2px; margin-bottom: 15px; background: var(--gold); }
.footer-column > a { color: rgba(255,255,255,.72); font-size: clamp(13px, .85vw, 16px); font-weight: 400; line-height: 1.87; transition: color 170ms ease; }
.footer-column > a:hover, .footer-column > a:focus-visible { color: #fff; }
.footer-products { display: flex; flex-direction: column; align-items: flex-start; }
.footer-products > a { white-space: nowrap; }
.footer-contact .footer-title-line { margin-bottom: 14px; }
.footer-contact > a, .footer-contact > p { width: 100%; min-height: 54px; margin: 0; display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.82); font-size: clamp(13px, .84vw, 15px); line-height: 1.25; }
.footer-contact > a:hover { transform: none; }
.footer-contact .icon + span { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.footer-contact small { color: var(--gold-light); font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.footer-contact .icon { position: relative; width: 35px; height: 35px; flex: 0 0 35px; color: var(--gold-light); background: transparent; border: 1px solid rgba(209,173,120,.28); border-radius: 50%; -webkit-mask: none; mask: none; }
.footer-contact .icon::before { content: ""; position: absolute; inset: 9px; background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.footer-bottom { min-height: 64px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid rgba(213,179,127,.22); color: rgba(255,255,255,.48); font-size: clamp(12px, .75vw, 14px); }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: rgba(255,255,255,.75); transition: color 160ms ease; }
.footer-bottom a:hover, .footer-bottom a:focus-visible { color: var(--gold-light); }

.inner-main { min-height: 56vh; background: radial-gradient(circle at 15% 5%, rgba(255,255,255,.95), transparent 31%), linear-gradient(150deg, #faf8f3 0%, #f3f0e8 100%); }
.content-inner { width: calc(100% - (var(--page-gutter) * 2)); max-width: var(--content-width); margin: 0 auto; padding: clamp(32px, 2.7vw, 52px) 0 clamp(58px, 5vw, 96px); }
.content-inner--narrow { max-width: 1180px; }
.breadcrumbs { margin-bottom: clamp(28px, 2.5vw, 46px); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: rgba(5,47,48,.56); font-size: 14px; }
.breadcrumbs a { transition: color 160ms ease; }
.breadcrumbs a:hover, .breadcrumbs a:focus-visible { color: var(--gold); }
.breadcrumbs span[aria-current="page"] { color: var(--ink); }
.page-card { padding: clamp(32px, 4.4vw, 68px); background: rgba(255,255,255,.88); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); }
.page-card h1, .product-detail h1 { margin: 8px 0 24px; font-size: clamp(38px, 4.2vw, 66px); font-weight: 400; line-height: 1.03; letter-spacing: -.045em; }
.rich-text { max-width: 860px; color: rgba(5,47,48,.72); font-size: clamp(16px, 1.05vw, 19px); line-height: 1.75; }
.rich-text p { margin: 0 0 1.25em; }
.rich-text p:last-child { margin-bottom: 0; }
.product-detail { display: grid; grid-template-columns: minmax(0,1.18fr) minmax(360px,.82fr); overflow: hidden; background: rgba(255,255,255,.9); border: 1px solid var(--line); border-radius: 17px; box-shadow: var(--shadow-lg); }
.product-detail__media { min-height: 520px; }
.product-detail__media img { width: 100%; height: 100%; display: block; object-fit: cover; }
.product-detail__content { padding: clamp(34px, 4vw, 72px); display: flex; flex-direction: column; justify-content: center; }
.product-detail .lead { margin: -6px 0 24px; color: var(--gold); font-size: clamp(17px, 1.1vw, 20px); font-weight: 700; line-height: 1.5; }
.button-public { width: fit-content; min-height: 52px; margin-top: 28px; padding: 0 24px; display: inline-flex; align-items: center; justify-content: center; gap: 11px; color: #fff; background: var(--green); border: 0; border-radius: 7px; font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 7px 18px rgba(0,61,57,.16); transition: background-color 180ms ease, transform 180ms ease; }
.button-public:hover, .button-public:focus-visible { background: var(--ink-deep); transform: translateY(-1px); }
.button-public .icon { width: 22px; height: 22px; }
.calculator { margin-top: 36px; padding-top: 30px; border-top: 1px solid var(--line); }
.calculator-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.calculator label { display: grid; gap: 8px; color: var(--ink); font-size: 14px; font-weight: 700; }
.calculator input { width: 100%; height: 50px; padding: 0 14px; color: var(--ink-deep); background: #fff; border: 1px solid rgba(7,57,56,.18); border-radius: 7px; font: inherit; }
.calculator input:focus { outline: 2px solid rgba(173,128,70,.36); border-color: var(--gold); }
.calculator-result { min-height: 30px; margin-top: 20px; display: block; color: var(--green); font-size: 18px; font-weight: 700; }
.contact-grid { margin-top: 36px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.contact-grid > * { min-height: 100px; padding: 22px; display: flex; flex-direction: column; justify-content: center; gap: 7px; background: var(--paper-light); border: 1px solid var(--line); border-radius: 10px; }
.contact-grid small { color: var(--gold); font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.contact-grid strong { overflow-wrap: anywhere; font-size: 17px; }
.error-page { text-align: center; }
.error-code { display: block; color: var(--gold); font-size: clamp(72px, 12vw, 150px); font-weight: 700; line-height: .8; opacity: .45; }
.error-page .button-public { margin-inline: auto; }

@media (max-width: 1280px) {
  .site-header { height: 88px; }
  .header-inner, .products-inner, .footer-inner { width: min(100% - 40px, 1040px); }
  .brand-name { font-size: 31px; }
  .desktop-nav, .call-button { display: none; }
  .mobile-menu { position: relative; margin-left: auto; display: block; }
  .mobile-menu summary { width: 48px; height: 48px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--green-light), var(--green)); border-radius: 8px; box-shadow: 0 8px 20px rgba(0,73,67,.18); cursor: pointer; list-style: none; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu summary .icon { width: 25px; height: 25px; }
  .mobile-menu nav { position: absolute; top: calc(100% + 12px); right: 0; width: min(320px, calc(100vw - 40px)); padding: 12px; display: grid; gap: 2px; background: #fffdfa; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 20px 50px rgba(3,40,38,.2); }
  .mobile-menu nav a { padding: 11px 12px; border-radius: 8px; font-weight: 700; }
  .mobile-menu nav a:hover, .mobile-menu nav a:focus-visible { background: #eef5f2; }
  .mobile-menu .mobile-call { margin-top: 7px; display: flex; align-items: center; justify-content: center; gap: 9px; color: #fff; background: var(--green); }
  .mobile-call .icon { width: 20px; height: 20px; }
  .products-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 46px 80px; }
  .content-inner { width: min(100% - 40px, 1040px); }
  .product-detail { grid-template-columns: 1fr; }
  .product-detail__media { min-height: auto; aspect-ratio: 1.9 / 1; }
}

@media (max-width: 700px) {
  .header-inner, .products-inner { width: calc(100% - 28px); }
  .footer-inner { width: calc(100% - 36px); }
  .site-header { height: 78px; }
  .brand-name { font-size: clamp(24px, 8vw, 29px); }
  .brand-logo { max-width: min(220px, 58vw); max-height: 48px; }
  .mobile-menu summary { width: 44px; height: 44px; }
  .products-inner { padding: 35px 0 43px; }
  .section-heading { display: block; margin-bottom: 25px; }
  .section-heading > div { padding-left: 16px; }
  .section-heading h1 { font-size: 38px; }
  .section-heading > p { margin-top: 15px; font-size: 14px; }
  .products-grid { grid-template-columns: 1fr; gap: 17px; }
  .product-card { border-radius: 12px; }
  .product-meta { min-height: 61px; padding-inline: 18px; }
  .product-meta strong { font-size: 18px; }
  .footer-inner { padding-top: 46px; }
  .footer-top { grid-template-columns: 1fr; gap: 35px; padding-bottom: 40px; }
  .footer-about p { max-width: 100%; }
  .footer-products > a { white-space: normal; font-size: 14px; }
  .footer-bottom { padding: 20px 0; flex-direction: column; align-items: flex-start; gap: 10px; }
  .content-inner { width: calc(100% - 28px); padding-top: 28px; }
  .page-card { padding: 28px 20px; border-radius: 12px; }
  .page-card h1, .product-detail h1 { font-size: 38px; }
  .product-detail { border-radius: 12px; }
  .product-detail__media { aspect-ratio: 1.35 / 1; }
  .product-detail__content { padding: 30px 20px 36px; }
  .calculator-grid, .contact-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
