:root {
  --ink: #143137;
  --muted: #527078;
  --paper: #ffffff;
  --soft: #eef6f4;
  --warm: #f8e9c9;
  --brand: #08737a;
  --brand-dark: #07545b;
  --accent: #edb24b;
  --line: #d8e5e3;
  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 36px;
  --shadow: 0 22px 70px rgba(10, 71, 77, 0.14);
  --font-scale: 1;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
  font-size: calc(16px * var(--font-scale));
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  object-fit: cover;
}

a {
  color: inherit;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea,
select {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

h1,
h2,
h3,
p,
figure,
dl,
dd,
blockquote {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 12ch;
  margin-bottom: 1.5rem;
  font-size: clamp(3rem, 7vw, 6.3rem);
  font-weight: 760;
}

h2 {
  margin-bottom: 1.4rem;
  font-size: clamp(2.35rem, 4vw, 4.35rem);
  font-weight: 740;
}

h3 {
  margin-bottom: 0.9rem;
  font-size: 1.55rem;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.section {
  padding: clamp(76px, 9vw, 132px) 0;
}

.section--light {
  background: var(--soft);
}

.section--warm {
  background: var(--warm);
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  border-radius: 10px;
  color: #fff;
  background: var(--brand-dark);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.access-panel {
  color: #fff;
  background: var(--brand-dark);
}

.access-panel__inner {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.access-panel__label {
  font-size: 0.82rem;
  opacity: 0.8;
}

.access-controls {
  display: flex;
  gap: 5px;
}

.access-button {
  min-width: 36px;
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  color: #fff;
  background: transparent;
  cursor: pointer;
}

.access-button:hover,
.access-button[aria-pressed="true"] {
  color: var(--brand-dark);
  background: #fff;
}

.access-button--large {
  font-size: 1.05rem;
  font-weight: 700;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(20, 49, 55, 0.09);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.site-header__inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand__mark {
  width: 47px;
  flex: 0 0 47px;
  color: var(--brand);
}

.brand__mark circle:first-child {
  fill: currentColor;
}

.brand__mark circle:nth-child(2),
.brand__mark path {
  fill: none;
  stroke: #fff;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand__mark circle:nth-child(2) {
  fill: #fff;
  stroke-width: 0;
}

.brand__text {
  display: grid;
  line-height: 1.15;
}

.brand__text strong {
  font-size: 1.03rem;
}

.brand__text small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

.main-nav a {
  font-size: 0.92rem;
  font-weight: 620;
  text-decoration: none;
}

.main-nav a:hover {
  color: var(--brand);
}

.header-phone {
  display: grid;
  line-height: 1.15;
  text-decoration: none;
}

.header-phone span {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.header-phone strong {
  margin-top: 4px;
  font-size: 0.95rem;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  margin-left: auto;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.menu-toggle > span:not(.visually-hidden) {
  display: block;
  width: 100%;
  height: 2px;
  margin: 4px 0;
  background: var(--ink);
}

.hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 4% 12%, rgba(237, 178, 75, 0.22), transparent 24rem),
    linear-gradient(180deg, #fff 0%, #f6faf9 100%);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  align-items: center;
  gap: clamp(48px, 7vw, 92px);
}

.eyebrow {
  margin-bottom: 1.2rem;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow--light {
  color: #92e5df;
}

.hero__lead,
.lead {
  max-width: 690px;
  color: var(--muted);
  font-size: clamp(1.12rem, 1.7vw, 1.35rem);
  line-height: 1.55;
}

.hero__actions {
  margin: 2.2rem 0 2.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 52px;
  padding: 14px 22px;
  border: 2px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 720;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 12px 28px rgba(8, 115, 122, 0.22);
}

.button--primary:hover {
  background: var(--brand-dark);
}

.button--secondary {
  color: var(--brand-dark);
  border-color: var(--line);
  background: #fff;
}

.button--dark {
  color: #fff;
  background: var(--ink);
}

.button--large {
  min-height: 60px;
  padding-inline: 28px;
  font-size: 1.05rem;
}

.hero__stats {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.hero__stats div {
  padding-top: 15px;
  border-top: 2px solid var(--line);
}

.hero__stats dt {
  color: var(--brand-dark);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
}

.hero__stats dd {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.79rem;
  line-height: 1.35;
}

.media-card {
  position: relative;
  min-height: 580px;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--soft);
  box-shadow: var(--shadow);
}

.media-card::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(4, 37, 42, 0.75) 100%);
}

.media-card img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.media-card figcaption {
  position: absolute;
  z-index: 2;
  right: 28px;
  bottom: 26px;
  left: 28px;
  color: #fff;
}

.media-card figcaption strong {
  display: block;
  max-width: 17ch;
  font-size: 1.7rem;
  line-height: 1.15;
}

.media-card__tag {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 11px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(48px, 9vw, 128px);
}

.about-grid h2 {
  max-width: 9ch;
}

.about-copy {
  padding-top: 28px;
  font-size: 1.06rem;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.section-heading {
  margin-bottom: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.68fr);
  align-items: end;
  gap: 48px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading > p {
  margin-bottom: 5px;
  color: var(--muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.service-card {
  min-height: 310px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  background: #fff;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 50px rgba(10, 71, 77, 0.1);
}

.service-card__number {
  width: 44px;
  height: 44px;
  margin-bottom: auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--brand-dark);
  background: var(--soft);
  font-size: 0.76rem;
  font-weight: 800;
}

.service-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.project {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--brand-dark);
}

.project::after {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  right: -210px;
  bottom: -300px;
  border: 95px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}

.project__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(56px, 9vw, 130px);
}

.project__lead {
  max-width: 650px;
  color: #d9eeec;
  font-size: 1.15rem;
}

.check-list {
  margin: 30px 0 34px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 30px;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 900;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 750;
}

.text-link--light {
  color: #fff;
}

.project__quote {
  padding: clamp(32px, 4vw, 54px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.project__quote-mark {
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: 6rem;
  line-height: 0.6;
}

.project__quote blockquote {
  margin: 22px 0 34px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 2.5vw, 2.15rem);
  line-height: 1.3;
}

.project__quote p {
  margin-bottom: 0;
  font-weight: 750;
}

.project__quote p span {
  color: #aed6d3;
  font-size: 0.85rem;
  font-weight: 500;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 270px;
  gap: 16px;
}

.gallery-card {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--soft);
}

.gallery-card--wide {
  grid-row: span 2;
}

.gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(6, 39, 43, 0.82) 100%);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  transition: transform 500ms ease;
}

.gallery-card:hover img {
  transform: scale(1.025);
}

.gallery-card figcaption {
  position: absolute;
  z-index: 1;
  right: 24px;
  bottom: 22px;
  left: 24px;
  color: #fff;
}

.gallery-card figcaption strong,
.gallery-card figcaption span {
  display: block;
}

.gallery-card figcaption strong {
  font-size: 1.25rem;
}

.gallery-card figcaption span {
  margin-top: 4px;
  font-size: 0.87rem;
  opacity: 0.82;
}

.photo-credit {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.join-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(42px, 7vw, 90px);
}

.join-grid h2 {
  margin-bottom: 1.1rem;
}

.join-grid .lead {
  margin-bottom: 0;
  color: #664f25;
}

.join-actions {
  display: grid;
  gap: 12px;
}

.contacts__grid {
  display: grid;
  grid-template-columns: 0.82fr 1fr 1fr;
  gap: 22px;
}

.contacts__intro {
  padding-right: 24px;
}

.contacts__intro h2 {
  font-size: clamp(2.4rem, 4vw, 3.8rem);
}

.contacts__intro p:last-child {
  color: var(--muted);
}

.contact-card,
.requisites-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-style: normal;
  background: #fff;
}

.contact-row {
  padding: 17px 0;
  display: grid;
  gap: 5px;
  border-bottom: 1px solid var(--line);
}

.contact-row:first-child {
  padding-top: 0;
}

.contact-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.contact-row span,
.requisites-card dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.contact-row a {
  color: var(--brand-dark);
  font-weight: 760;
}

.requisites-card h3 {
  margin-bottom: 22px;
}

.requisites-card dl {
  margin-bottom: 22px;
}

.requisites-card dl div {
  padding: 8px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.requisites-card dd {
  margin: 0;
  font-weight: 750;
}

.requisites-card > p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.site-footer {
  padding: 64px 0 24px;
  color: #fff;
  background: #102d32;
}

.site-footer__top {
  padding-bottom: 46px;
  display: flex;
  justify-content: space-between;
  gap: 54px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.brand--footer .brand__mark {
  color: #45aeb2;
}

.brand--footer .brand__text small {
  color: #acc6c8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 14px 26px;
}

.footer-links a {
  color: #d6e6e7;
  font-size: 0.86rem;
}

.site-footer__bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: #9bb5b7;
  font-size: 0.75rem;
}

.site-footer__bottom p {
  margin-bottom: 0;
}

body[data-contrast="true"] {
  --ink: #000;
  --muted: #111;
  --paper: #fff;
  --soft: #fff;
  --warm: #ffec00;
  --brand: #004e57;
  --brand-dark: #000;
  --accent: #ffec00;
  --line: #000;
}

body[data-contrast="true"] .hero,
body[data-contrast="true"] .site-header,
body[data-contrast="true"] .service-card,
body[data-contrast="true"] .contact-card,
body[data-contrast="true"] .requisites-card {
  background: #fff;
}

body[data-contrast="true"] .project,
body[data-contrast="true"] .site-footer,
body[data-contrast="true"] .access-panel {
  background: #000;
}

body[data-images="off"] img,
body[data-images="off"] .media-card,
body[data-images="off"] .gallery-grid,
body[data-images="off"] .photo-credit {
  display: none;
}

body[data-images="off"] .hero__grid {
  grid-template-columns: 1fr;
}

@media (max-width: 1060px) {
  .main-nav {
    gap: 18px;
  }

  .header-phone {
    display: none;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-card {
    min-height: 250px;
  }

  .contacts__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contacts__intro {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .container {
    width: min(100% - 30px, 680px);
  }

  .access-panel__label {
    display: none;
  }

  .access-panel__inner {
    justify-content: center;
  }

  .site-header__inner {
    min-height: 72px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 114px;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 28px 24px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    background: #fff;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.25rem;
  }

  .hero__grid,
  .about-grid,
  .project__grid,
  .join-grid {
    grid-template-columns: 1fr;
  }

  .hero__content {
    order: 1;
  }

  .hero__media {
    order: 2;
  }

  .media-card {
    min-height: 460px;
  }

  .about-copy {
    padding-top: 0;
  }

  .section-heading {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 18px;
  }

  .check-list {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-auto-rows: 320px;
  }

  .gallery-card--wide {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .join-actions {
    max-width: 520px;
  }

  .site-footer__top,
  .site-footer__bottom {
    flex-direction: column;
  }

  .footer-links {
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 590px) {
  h1 {
    font-size: clamp(2.75rem, 14vw, 4.3rem);
  }

  .section {
    padding: 72px 0;
  }

  .brand__mark {
    width: 42px;
    flex-basis: 42px;
  }

  .brand__text strong {
    font-size: 0.95rem;
  }

  .brand__text small {
    font-size: 0.63rem;
  }

  .access-button {
    padding-inline: 8px;
    font-size: 0.82rem;
  }

  .hero__actions,
  .hero__actions .button {
    width: 100%;
  }

  .hero__stats {
    grid-template-columns: 1fr;
  }

  .hero__stats div {
    display: grid;
    grid-template-columns: 70px 1fr;
    align-items: center;
    gap: 10px;
  }

  .hero__stats dd {
    margin-top: 0;
  }

  .media-card {
    min-height: 380px;
    border-radius: var(--radius-md);
  }

  .service-grid,
  .gallery-grid,
  .contacts__grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 235px;
  }

  .gallery-grid {
    grid-auto-rows: 300px;
  }

  .button--large {
    width: 100%;
  }

  .contact-card,
  .requisites-card {
    padding: 24px;
  }

  .requisites-card dl div {
    display: grid;
    gap: 2px;
  }
}

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