/* Design tokens */
:root {
  --color-nav-bg: #3c3c3c;
  --color-accent: #cb3bc4;
  --color-text: #333333;
  --color-text-muted: #777777;
  --color-icon-muted: #b0b0b0;
  --color-header-bg: #ffffff;
  --font-sans: Arial, Helvetica, "Segoe UI", Roboto, sans-serif;
  --container-pad: clamp(22px, 4.5vw, 56px);
  --header-top-pad-y: clamp(22px, 2.5vw, 30px);
  --header-brand-gap: 15px;
  --header-contacts-gap-x: 36px;
  --header-contacts-gap-y: 24px;
  --header-icon-text-gap: 10px;
  --nav-height: 48px;
  --min-width: 375px;
  --max-site-width: 1920px;
  --mobile-menu-top: 104px;
  --color-menu-accent: #cb3bc4;
  --color-hero-accent: #cb3bc4;
  --font-hero: "Montserrat", var(--font-sans);
  --color-close-border: #d4a017;
  --mobile-menu-ease: cubic-bezier(0.32, 0.72, 0, 1);
  --mobile-menu-duration: 0.45s;
  --color-about-section-bg: #ebebeb;
  --cookie-banner-bg: rgba(255, 255, 255, 0.94);
  --cookie-banner-border: rgba(60, 60, 60, 0.1);
  --cookie-banner-shadow: 0 -8px 40px rgba(60, 60, 60, 0.12);
  --cookie-banner-pad-y: clamp(22px, 3.2vw, 32px);
  --cookie-banner-pad-top: clamp(26px, 3.5vw, 36px);
  --cookie-banner-gap-main: clamp(18px, 2.5vw, 24px);
  --cookie-banner-gap-actions: clamp(32px, 5vw, 56px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: var(--min-width);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.4;
  color: var(--color-text);
  background: #ffffff;
  overflow-x: hidden;
}

.site-shell {
  width: 100%;
  max-width: var(--max-site-width);
  margin-left: auto;
  margin-right: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

/* ——— Top header ——— */
.site-header {
  background: var(--color-header-bg);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.header-top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(20px, 3vw, 40px);
  padding-top: var(--header-top-pad-y);
  padding-bottom: var(--header-top-pad-y);
  flex-wrap: wrap;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: var(--header-brand-gap);
  min-width: 0;
}

.header-brand__logo {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #ebebeb;
  color: #999999;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-brand__logo--image {
  display: block;
  object-fit: contain;
  background: transparent;
}

.header-brand__name {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
}

.header-brand__tagline {
  margin: 0;
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.3;
}

.header-contacts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--header-contacts-gap-y) var(--header-contacts-gap-x);
  justify-content: flex-end;
}

.header-social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-social__link {
  color: var(--color-icon-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.header-social__link:hover {
  color: #888888;
}

.header-social__icon {
  width: 22px;
  height: 22px;
}

.header-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-icon--accent {
  background: var(--color-accent);
  color: #ffffff;
}

.header-icon svg {
  width: 18px;
  height: 18px;
}

.header-phone,
.header-address {
  display: flex;
  align-items: center;
  gap: var(--header-icon-text-gap);
}

.header-phone__number {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
}

.header-phone__number:hover {
  text-decoration: underline;
}

.header-address__text {
  font-size: 15px;
  color: var(--color-text);
  white-space: nowrap;
}

/* ——— Nav bar ——— */
.header-nav-wrap {
  background: var(--color-nav-bg);
}

.header-nav-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--nav-height);
}

.main-nav {
  width: 100%;
}

.main-nav__list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: nowrap;
  min-height: var(--nav-height);
}

.main-nav__list a {
  display: block;
  padding: 12px 4px;
  font-size: 14px;
  color: #ffffff;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.main-nav__list a:hover {
  opacity: 0.85;
}

.main-nav__drawer-contacts {
  display: none;
}

.main-nav__mobile-scroll {
  display: block;
  width: 100%;
}

/* Hamburger — hidden on desktop, in top bar on mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  flex-shrink: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--color-text);
}

.nav-toggle__line {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.25s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ——— О компании ——— */
.about-company {
  background: var(--color-about-section-bg);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: clamp(48px, 6.5vw, 80px) 0;
  box-sizing: border-box;
}

.about-company__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.about-company__title {
  margin: 0 0 clamp(18px, 2.5vw, 28px);
  font-family: var(--font-hero);
  font-size: clamp(1.5rem, 2.8vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
  line-height: 1.2;
}

.about-company__text {
  margin: 0;
  font-size: clamp(0.95rem, 1.25vw, 1.05rem);
  line-height: 1.55;
  color: var(--color-text);
}

.about-company__more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: clamp(20px, 2.5vw, 28px);
  font-family: var(--font-hero);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-hero-accent);
  text-decoration: none;
  transition:
    color 0.2s,
    opacity 0.2s;
}

.about-company__more:hover {
  color: #8fb832;
  text-decoration: underline;
}

.about-company__more:focus-visible {
  outline: 2px solid var(--color-hero-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.about-company__more-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.about-company__more-icon svg {
  width: 100%;
  height: 100%;
}

.about-company__media {
  min-width: 0;
}

.about-company__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

@media (max-width: 800px) {
  .about-company__inner {
    grid-template-columns: 1fr;
    gap: clamp(22px, 4vw, 32px);
  }
}

/* ——— Преимущества и ценности ——— */
.advantages {
  margin-top: clamp(36px, 5vw, 56px);
  margin-bottom: clamp(8px, 2vw, 16px);
  padding: clamp(40px, 5.5vw, 64px) 0;
  
  border-radius: 0;
  font-family: var(--font-hero);
}

.advantages__head {
  max-width: 40rem;
  margin-bottom: clamp(28px, 4vw, 40px);
}

.advantages__title {
  margin: 0 0 clamp(10px, 1.5vw, 14px);
  font-size: clamp(1.45rem, 2.8vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--color-text);
}

.advantages__title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: clamp(14px, 2vw, 18px);
  border-radius: 2px;
  background: linear-gradient(90deg, var(--color-accent), rgba(203, 59, 196, 0.35));
}

.advantages__lead {
  margin: 0;
  font-size: clamp(0.9rem, 1.25vw, 1.02rem);
  line-height: 1.55;
  color: var(--color-text-muted);
  max-width: 52ch;
}

.advantages__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 22px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.advantages-card {
  position: relative;
  margin: 0;
  padding: clamp(20px, 2.5vw, 26px) clamp(18px, 2vw, 22px);
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.advantages-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(203, 59, 196, 0.35), transparent 55%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.advantages-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
  border-color: rgba(203, 59, 196, 0.2);
}

.advantages-card:hover::before {
  opacity: 1;
}

.advantages-card__icon {
  width: 52px;
  height: 52px;
  margin-bottom: clamp(14px, 2vw, 18px);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(145deg, var(--color-accent) 0%, #a82ea3 100%);
  box-shadow: 0 6px 18px rgba(203, 59, 196, 0.35);
}

.advantages-card__icon svg,
.advantages-card__icon-img {
  width: 26px;
  height: 26px;
}

.advantages-card__icon-img {
  object-fit: contain;
}

.advantages-card__title {
  margin: 0 0 8px;
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text);
}

.advantages-card__text {
  margin: 0;
  font-size: clamp(0.82rem, 1.1vw, 0.9rem);
  line-height: 1.5;
  color: var(--color-text-muted);
}

@media (max-width: 1024px) {
  .advantages__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .advantages__grid {
    grid-template-columns: 1fr;
  }
}

/* ——— С кем работаем ——— */
.audience {
  position: relative;
  isolation: isolate;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: clamp(32px, 5vw, 56px);
  margin-bottom: 0;
  padding: clamp(48px, 7vw, 96px) 0;
  overflow: hidden;
  box-sizing: border-box;
  color: #ffffff;
  font-family: var(--font-hero);
}

.audience__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.audience__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    105deg,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.58) 48%,
    rgba(0, 0, 0, 0.45) 100%
  );
}

.audience__inner {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.audience__head {
  max-width: 48rem;
  margin-bottom: clamp(28px, 4.5vw, 44px);
}

.audience__title {
  margin: 0 0 clamp(10px, 1.5vw, 14px);
  font-family: var(--font-hero);
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #ffffff;
}

.audience__subtitle {
  margin: 0;
  font-size: clamp(0.9rem, 1.35vw, 1.05rem);
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
  max-width: 52ch;
}

.audience__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 28px);
  align-items: start;
}

.audience-card {
  margin: 0;
  min-width: 0;
}

.audience-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  overflow: hidden;
  background: #2a2a2a;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.audience-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.audience-card__img--muted {
  filter: grayscale(1) contrast(0.95);
}

.audience-card:hover .audience-card__img {
  transform: scale(1.03);
}

.audience-card__caption {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: clamp(12px, 2vw, 16px) 0 0;
  font-size: clamp(0.82rem, 1.1vw, 0.92rem);
  font-weight: 500;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.78);
}

.audience-card__dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-hero-accent);
  box-shadow: 0 0 0 2px rgba(203, 59, 196, 0.25);
}

@media (max-width: 900px) {
  .audience__grid {
    grid-template-columns: 1fr;
  }
}

.page-main {
  
}

.page-placeholder {
  margin: 0;
  color: var(--color-text-muted);
}

/* ——— Продукция (категории) ——— */
.products {
  padding: 0;
}

.products__title {
  margin: 0 0 clamp(22px, 3vw, 32px);
  font-family: var(--font-hero);
  font-size: clamp(1.5rem, 2.8vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
  line-height: 1.2;
}

.products__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 22px);
  margin-bottom: 32px;
}

.product-card {
  margin: 0;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  transition:
    box-shadow 0.2s,
    border-color 0.2s;
}

.product-card:hover {
  border-color: #d0d0d0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.product-card__inner {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 148px;
}

.product-card__media {
  flex: 0 0 44%;
  max-width: 44%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 2vw, 18px) clamp(10px, 1.5vw, 14px);
  background: #fafafa;
  border-right: 1px solid #eeeeee;
}

.product-card__img {
  display: block;
  width: 100%;
  max-width: 160px;
  height: auto;
  object-fit: contain;
}

.product-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding:
    clamp(14px, 2vw, 20px) clamp(14px, 2vw, 18px) clamp(14px, 2vw, 20px)
    clamp(12px, 1.8vw, 16px);
}

.product-card__name {
  margin: 0;
  font-size: clamp(0.95rem, 1.35vw, 1.05rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text);
}

.product-card__text {
  margin: 0;
  font-size: clamp(0.8rem, 1.1vw, 0.875rem);
  line-height: 1.45;
  color: var(--color-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  align-self: flex-start;
  font-family: var(--font-hero);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-hero-accent);
  text-decoration: none;
  transition:
    color 0.2s,
    opacity 0.2s;
}

.product-card__more:hover {
  color: #8fb832;
  text-decoration: underline;
}

.product-card__more:focus-visible {
  outline: 2px solid var(--color-hero-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.product-card__more-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.product-card__more-icon svg {
  width: 100%;
  height: 100%;
}

@media (max-width: 1100px) {
  .products__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .products__grid {
    grid-template-columns: 1fr;
  }

  .product-card__inner {
    flex-direction: column;
    min-height: 0;
  }

  .product-card__media {
    flex: none;
    max-width: none;
    border-right: none;
    border-bottom: 1px solid #eeeeee;
    padding: 16px;
  }

  .product-card__img {
    max-width: 200px;
    margin-inline: auto;
  }
}

/* ——— Наши проекты / галерея (карточки как у блока «Статьи») ——— */
.projects-showcase {
  margin-top: clamp(40px, 6vw, 72px);
  margin-bottom: clamp(8px, 2vw, 16px);
}

.projects-showcase__frame {
  
  background: #ffffff;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.projects-showcase__head {
  border-bottom: 1px solid #e0e0e0;
  min-width: 0;
}

.projects-showcase__head-main {
  padding: clamp(22px, 3.5vw, 40px) clamp(0px, 0vw, 0px);
    min-width: 0;
}

.projects-showcase__title {
  margin: 0 0 clamp(8px, 1.2vw, 12px);
  font-family: var(--font-hero);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
  line-height: 1.2;
}

.projects-showcase__subtitle {
  margin: 0;
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  line-height: 1.5;
  color: var(--color-text-muted);
  max-width: 52ch;
}

.projects-showcase__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 24px);
  min-width: 0;
}

.projects-showcase__card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  color: inherit;
  text-decoration: none;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e0dce3;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition:
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.projects-showcase__card:hover {
  border-color: rgba(203, 59, 196, 0.35);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.projects-showcase__card:focus-visible {
  outline: 2px solid var(--color-hero-accent);
  outline-offset: 2px;
  border-radius: 12px;
  z-index: 1;
  position: relative;
}

.projects-showcase__card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e8e4eb;
}

.projects-showcase__card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(26, 26, 26, 0.45) 100%);
  pointer-events: none;
}

.projects-showcase__card-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.projects-showcase__card:hover .projects-showcase__card-img {
  transform: scale(1.04);
}

.projects-showcase__card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1vw, 10px);
  padding: clamp(16px, 2vw, 22px) clamp(16px, 2vw, 22px) clamp(18px, 2.2vw, 24px);
  min-width: 0;
  border-top: 3px solid var(--color-accent);
}

.projects-showcase__card-title {
  margin: 0;
  font-family: var(--font-hero);
  font-size: clamp(0.95rem, 1.3vw, 1.06rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text);
}

.projects-showcase__card-text {
  margin: 0;
  font-size: clamp(0.8rem, 1.05vw, 0.9rem);
  line-height: 1.5;
  color: var(--color-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

@media (max-width: 1100px) {
  .projects-showcase__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .projects-showcase__grid {
    grid-template-columns: 1fr;
  }

  .projects-showcase__card:hover {
    transform: none;
  }
}

/* ——— Статьи ——— */
.articles {
 
  
  padding: clamp(40px, 5vw, 64px) 0;
  background: linear-gradient(180deg, #f3f1f4 0%, #ebebeb 100%);
  
}

.articles__head {
  margin-bottom: clamp(22px, 3vw, 36px);
  max-width: 58ch;
}

.articles__title {
  margin: 0 0 clamp(8px, 1.2vw, 12px);
  font-family: var(--font-hero);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
  line-height: 1.2;
}

.articles__lead {
  margin: 0;
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  line-height: 1.55;
  color: var(--color-text-muted);
}

.articles__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 24px);
  min-width: 0;
}

.article-card {
  margin: 0;
  min-width: 0;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e0dce3;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition:
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.article-card:hover {
  border-color: rgba(203, 59, 196, 0.35);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.article-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  color: inherit;
  text-decoration: none;
}

.article-card__link:focus-visible {
  outline: 2px solid var(--color-hero-accent);
  outline-offset: 2px;
  border-radius: 12px;
}

.article-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e8e4eb;
}

.article-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(26, 26, 26, 0.45) 100%);
  pointer-events: none;
}

.article-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-card:hover .article-card__img {
  transform: scale(1.04);
}

.article-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1vw, 10px);
  padding: clamp(16px, 2vw, 22px) clamp(16px, 2vw, 22px) clamp(18px, 2.2vw, 24px);
  border-top: 3px solid var(--color-accent);
}

.article-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: 0.75rem;
  line-height: 1.3;
}

.article-card__tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #6b2a66;
  background: rgba(203, 59, 196, 0.12);
}

.article-card__date {
  color: var(--color-text-muted);
}

.article-card__name {
  margin: 0;
  font-family: var(--font-hero);
  font-size: clamp(0.95rem, 1.3vw, 1.06rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text);
}

.article-card__text {
  margin: 0;
  font-size: clamp(0.8rem, 1.05vw, 0.9rem);
  line-height: 1.5;
  color: var(--color-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.article-card__more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-family: var(--font-hero);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-hero-accent);
  transition: color 0.2s;
}

.article-card:hover .article-card__more {
  color: #8fb832;
}

.article-card__more-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.article-card__more-icon svg {
  width: 100%;
  height: 100%;
}

.articles__footer {
  margin-top: clamp(24px, 3vw, 36px);
  text-align: center;
}

.articles__all-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 28px;
  border-radius: 999px;
  font-family: var(--font-hero);
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  background: var(--color-accent);
  transition: background 0.2s ease, transform 0.2s ease;
}

.articles__all-link:hover {
  background: #a8329f;
  transform: translateY(-1px);
}

.articles__all-link:focus-visible {
  outline: 2px solid var(--color-hero-accent);
  outline-offset: 2px;
}

.articles-page--list {
  background: linear-gradient(180deg, #f3f1f4 0%, #f5f5f5 100%);
}

.articles-page__grid {
  margin-bottom: clamp(24px, 3vw, 40px);
}

.article-page__hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 40%);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
  margin-bottom: clamp(28px, 3.5vw, 44px);
}

.article-page__intro {
  min-width: 0;
}

.article-page__hero .article-page__meta {
  margin-bottom: clamp(12px, 1.5vw, 18px);
}

.article-page__hero .article-page__title {
  margin-bottom: clamp(12px, 1.5vw, 16px);
}

.article-page__hero .article-page__lead {
  margin-bottom: 0;
  max-width: none;
}

.article-page__figure {
  margin: 0;
  min-width: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e0dce3;
  background: #ffffff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
  aspect-ratio: 4 / 3;
}

.article-page__figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-page__content {
  max-width: none;
}

.article-page__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-bottom: clamp(12px, 1.5vw, 18px);
}

.article-page__content p {
  margin: 0 0 1em;
}

.article-page__content p:last-child {
  margin-bottom: 0;
}

@media (max-width: 1100px) {
  .articles__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .article-page__hero {
    grid-template-columns: 1fr;
    gap: clamp(20px, 2.5vw, 28px);
  }

  .article-page__figure {
    max-width: 100%;
  }
}

@media (max-width: 560px) {
  .articles__grid {
    grid-template-columns: 1fr;
  }

  .article-card:hover {
    transform: none;
  }
}

/* ——— Внутренние страницы проектов ——— */
.project-page-header .header-top__inner {
  justify-content: flex-start;
}

.project-page-brand {
  min-width: 0;
}

.project-page {
  padding: clamp(28px, 4vw, 48px) 0 clamp(48px, 6vw, 80px);
  background: #f5f5f5;
}

.project-page__breadcrumb {
  margin-bottom: clamp(16px, 2vw, 24px);
}

.project-page__back {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-hero-accent);
  text-decoration: none;
  font-family: var(--font-hero);
}

.project-page__back:hover {
  color: #8fb832;
  text-decoration: underline;
}

.project-page__back:focus-visible {
  outline: 2px solid var(--color-hero-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.project-page__title {
  margin: 0 0 clamp(12px, 1.5vw, 18px);
  font-family: var(--font-hero);
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
  line-height: 1.2;
}

.project-page__title--list {
  margin-bottom: clamp(8px, 1.2vw, 12px);
}

.project-page__lead {
  margin: 0 0 clamp(20px, 2.5vw, 28px);
  font-size: clamp(0.95rem, 1.25vw, 1.05rem);
  line-height: 1.55;
  color: var(--color-text-muted);
  max-width: 65ch;
}

.project-page__list-lead {
  margin: 0 0 clamp(20px, 2vw, 28px);
  font-size: clamp(0.95rem, 1.2vw, 1.02rem);
  color: var(--color-text-muted);
  max-width: 60ch;
}

.project-page__figure {
  margin: 0 0 clamp(24px, 3vw, 36px);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  background: #ffffff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

.project-page__figure img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.project-page__content {
  font-size: clamp(0.95rem, 1.2vw, 1.02rem);
  line-height: 1.6;
  color: var(--color-text);
  max-width: 65ch;
}

.project-page__content p {
  margin: 0 0 1em;
}

.project-page__content p:last-child {
  margin-bottom: 0;
}

.project-page__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.5vw, 16px);
}

.project-page__list a {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-hero);
  font-weight: 600;
  font-size: clamp(0.95rem, 1.2vw, 1.02rem);
  color: var(--color-hero-accent);
  text-decoration: none;
  transition: color 0.2s;
}

.project-page__list a:hover {
  color: #8fb832;
  text-decoration: underline;
}

.project-page__list a:focus-visible {
  outline: 2px solid var(--color-hero-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ——— Hero (first screen) ——— */
.hero {
  position: relative;
  isolation: isolate;
  min-height: max(520px, min(92svh, 900px));
  display: flex;
  flex-direction: column;
  color: #ffffff;
  font-family: var(--font-hero);
  margin-bottom: 32px;
}

@media (min-width: 901px) {
  .hero {
    min-height: 0;
    max-height: 600px;
    height: min(600px, 92svh);
  }
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    105deg,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.52) 48%,
    rgba(0, 0, 0, 0.38) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: inherit;
  padding-top: clamp(36px, 7vw, 80px);
  padding-bottom: clamp(24px, 4.5vw, 48px);
  box-sizing: border-box;
}

.hero__top {
  max-width: 52rem;
}

.hero__title {
  margin: 0 0 clamp(16px, 2.5vw, 22px);
  font-weight: 700;
  font-size: clamp(1.75rem, 4.2vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.hero__title-line {
  display: block;
}

.hero__title-line--emphasis {
  margin-top: 0.12em;
  font-weight: 800;
  font-size: clamp(1.95rem, 5vw, 3.85rem);
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero__lead {
  margin: 0 0 clamp(22px, 3.5vw, 34px);
  max-width: 38rem;
  font-size: clamp(0.95rem, 1.65vw, 1.125rem);
  font-weight: 400;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.94);
}

.hero__services {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(14px, 2.5vw, 28px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero__service {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero__service-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.38);
  color: #ffffff;
}

.hero__service-icon svg,
.hero__service-icon-img {
  width: 20px;
  height: 20px;
}

.hero__service-icon-img {
  display: block;
  object-fit: contain;
}

.hero__service-text {
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  font-weight: 700;
  white-space: nowrap;
}

.hero__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(20px, 3vw, 36px);
  margin-top: clamp(28px, 5vw, 48px);
}

.hero__footnote {
  margin: 0;
  flex: 1 1 75px;
  max-width: 26rem;
  font-size: clamp(0.8rem, 1.25vw, 0.9rem);
  font-weight: 400;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 2vw, 22px);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  font-family: var(--font-hero);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
}

.hero__cta--primary {
  background: var(--color-hero-accent);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.hero__cta--primary:hover {
  filter: brightness(1.06);
}

.hero__cta--secondary {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.85);
}

.hero__cta--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hero__badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  min-height: 72px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  background: transparent;
  text-align: center;
}

.hero__badge-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}

.hero__badge-value {
  margin-top: 2px;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

@media (max-width: 640px) {
  .hero__bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__footnote {
    order: 2;
    max-width: none;
  }

  .hero__actions {
    order: 1;
    justify-content: flex-start;
  }

  .hero__ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__cta {
    width: 100%;
  }

  .hero__badge {
    align-self: flex-start;
  }
}

/* ——— Modal (заявка) ——— */
button.hero__cta {
  margin: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  text-decoration: none;
}

/* ——— Hero (страница продукта) ——— */
.hero--product {
  margin-bottom: 0;
}

@media (min-width: 901px) {
  .hero--product {
    max-height: 480px;
    height: min(480px, 72svh);
  }
}

.hero--product .hero__content {
  justify-content: center;
}

.hero--product .hero__title-line--emphasis {
  display: none;
}

.hero__ctas--product {
  margin-top: clamp(8px, 2vw, 16px);
}

/* ——— Страница продукта (текст под героем) ——— */
.product-page {
  padding: clamp(32px, 5vw, 56px) 0 clamp(48px, 6vw, 72px);
}

.product-page__breadcrumb {
  margin-bottom: clamp(20px, 3vw, 28px);
}

.product-page__back {
  font-family: var(--font-hero);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-hero-accent);
  text-decoration: none;
}

.product-page__back:hover {
  text-decoration: underline;
}

.product-page__back:focus-visible {
  outline: 2px solid var(--color-hero-accent);
  outline-offset: 2px;
}

.product-page__content {
  max-width: 46rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-text);
}

.product-page__content p {
  margin: 0 0 1em;
}

.product-page__content p:last-child {
  margin-bottom: 0;
}

body.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal[hidden] {
  display: none !important;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 18, 12, 0.58);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  max-height: min(92vh, 640px);
  overflow: auto;
  padding: clamp(24px, 4vw, 32px) clamp(22px, 4vw, 28px) 28px;
  border-radius: 18px;
  background: #ffffff;
  color: var(--color-text);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(0, 0, 0, 0.04);
  font-family: var(--font-hero);
  transform: translateY(12px) scale(0.98);
  opacity: 0;
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.28s ease;
}

.modal.is-open .modal__panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal__accent {
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 4px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--color-hero-accent), #8fb832);
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  color: var(--color-text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.modal__close:hover {
  background: rgba(0, 0, 0, 0.08);
  color: var(--color-text);
}

.modal__close:focus-visible {
  outline: 2px solid var(--color-hero-accent);
  outline-offset: 2px;
}

.modal__title {
  margin: 0 40px 10px 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.modal__lead {
  margin: 0 0 22px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.modal__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal__label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-text);
}

.modal__input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d8d8d8;
  border-radius: 10px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--color-text);
  background: #fafafa;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.modal__input::placeholder {
  color: #a0a0a0;
}

.modal__input:hover {
  border-color: #c8c8c8;
}

.modal__input:focus {
  outline: none;
  border-color: var(--color-hero-accent);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(162, 197, 35, 0.2);
}

.modal__input--textarea {
  resize: vertical;
  min-height: 88px;
}

.modal__submit {
  margin-top: 4px;
  padding: 14px 22px;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ffffff;
  background: var(--color-hero-accent);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(162, 197, 35, 0.35);
  transition: filter 0.2s, transform 0.15s;
}

.modal__submit:hover {
  filter: brightness(1.05);
}

.modal__submit:active {
  transform: translateY(1px);
}

.modal__submit:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 2px;
}

.modal--legal {
  z-index: 2100;
}

.modal__panel--legal {
  max-width: 640px;
  max-height: min(88vh, 720px);
  display: flex;
  flex-direction: column;
}

.modal__legal-body {
  margin: 0;
  padding-right: 4px;
  overflow-y: auto;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text);
}

.form-consents {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f3f3f3;
  cursor: pointer;
}

.form-consent__checkbox {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--color-hero-accent);
  cursor: pointer;
}

.form-consent__text {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--color-text-muted);
}

.form-consent__link {
  display: inline;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: inherit;
  line-height: inherit;
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.form-consent__link:hover {
  color: var(--color-hero-accent);
}

.form-consent__link:focus-visible {
  outline: 2px solid var(--color-hero-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.form-consent:has(.form-consent__checkbox:invalid:not(:focus)) {
  box-shadow: inset 0 0 0 1px rgba(200, 60, 60, 0.35);
}

/* ——— Cookie banner ——— */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1900;
  background: var(--cookie-banner-bg);
  border-top: 1px solid var(--cookie-banner-border);
  box-shadow: var(--cookie-banner-shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(100%);
  transition:
    opacity 0.36s var(--mobile-menu-ease),
    transform 0.36s var(--mobile-menu-ease);
  pointer-events: none;
}

.cookie-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-banner__accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--color-accent) 0%,
    rgba(203, 59, 196, 0.45) 55%,
    transparent 100%
  );
  pointer-events: none;
}

.cookie-banner__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--cookie-banner-gap-actions);
  padding-top: var(--cookie-banner-pad-top);
  padding-bottom: var(--cookie-banner-pad-y);
}

.cookie-banner__main {
  display: flex;
  align-items: flex-start;
  gap: var(--cookie-banner-gap-main);
  flex: 1;
  min-width: 0;
  padding-right: clamp(8px, 1.5vw, 16px);
}

.cookie-banner__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(
    145deg,
    rgba(203, 59, 196, 0.14) 0%,
    rgba(203, 59, 196, 0.06) 100%
  );
  color: var(--color-accent);
}

.cookie-banner__icon-svg {
  width: 28px;
  height: 28px;
}

.cookie-banner__copy {
  min-width: 0;
}

.cookie-banner__title {
  margin: 0 0 10px;
  font-family: var(--font-hero);
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--color-text);
}

.cookie-banner__text {
  margin: 0;
  font-size: clamp(0.78rem, 1.35vw, 0.875rem);
  line-height: 1.55;
  color: var(--color-text-muted);
}

.cookie-banner__link {
  display: inline;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: inherit;
  line-height: inherit;
  color: var(--color-text);
  text-decoration: underline;
  text-decoration-color: rgba(203, 59, 196, 0.45);
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.2s, text-decoration-color 0.2s;
}

.cookie-banner__link:hover {
  color: var(--color-accent);
  text-decoration-color: var(--color-accent);
}

.cookie-banner__link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.cookie-banner__actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 12px;
  padding-left: clamp(4px, 1vw, 8px);
}

.cookie-banner__btn {
  min-height: 46px;
  padding: 0 clamp(20px, 2.5vw, 28px);
  border-radius: 999px;
  font-family: var(--font-hero);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  white-space: nowrap;
  transition:
    filter 0.2s,
    transform 0.15s,
    background-color 0.2s,
    border-color 0.2s,
    color 0.2s,
    box-shadow 0.2s;
}

.cookie-banner__btn--accept {
  border: none;
  color: #ffffff;
  background: linear-gradient(145deg, var(--color-accent) 0%, #a82ea3 100%);
  box-shadow: 0 4px 16px rgba(203, 59, 196, 0.35);
}

.cookie-banner__btn--accept:hover {
  filter: brightness(1.06);
}

.cookie-banner__btn--accept:active {
  transform: translateY(1px);
}

.cookie-banner__btn--reject {
  border: 1px solid rgba(60, 60, 60, 0.18);
  color: var(--color-text);
  background: #ffffff;
}

.cookie-banner__btn--reject:hover {
  border-color: rgba(60, 60, 60, 0.28);
  background: var(--color-about-section-bg);
}

.cookie-banner__btn--reject:active {
  transform: translateY(1px);
}

.cookie-banner__btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

body.cookie-banner-visible {
  padding-bottom: var(--cookie-banner-offset, 120px);
}

@media (max-width: 900px) {
  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding-top: clamp(22px, 4vw, 28px);
    padding-bottom: clamp(20px, 3.5vw, 26px);
  }

  .cookie-banner__main {
    padding-right: 0;
  }

  .cookie-banner__actions {
    width: 100%;
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 10px;
    padding-left: 0;
  }

  .cookie-banner__btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .cookie-banner__icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
  }

  .cookie-banner__icon-svg {
    width: 24px;
    height: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner {
    transition-duration: 0.01ms;
  }
}

@media (prefers-reduced-motion: reduce) {
  .modal,
  .modal__panel {
    transition-duration: 0.01ms;
  }
}

/* ——— Tablet: slightly tighter nav ——— */
@media (max-width: 1100px) {
  .main-nav__list a {
    font-size: 13px;
    padding: 12px 2px;
  }
}

@media (min-width: 901px) {
  .main-nav__drawer-contacts {
    display: none !important;
  }
}

/* ——— Mobile: fullscreen menu under site header (no duplicate branding) ——— */
@media (max-width: 900px) {
  .site-header {
    position: relative;
    z-index: 100;
  }

  .header-top {
    position: relative;
    z-index: 2;
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
  }

  body.nav-open .header-top {
    background: var(--color-nav-bg);
    box-shadow: none;
  }

  body.nav-open .header-brand__name {
    color: #ffffff;
    transition: color 0.25s ease;
  }

  body.nav-open .header-brand__tagline {
    color: rgba(255, 255, 255, 0.78);
    transition: color 0.25s ease;
  }

  body.nav-open .header-brand__logo {
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.92);
    transition: background-color 0.25s ease, color 0.25s ease;
  }

  .header-brand__name,
  .header-brand__tagline,
  .header-brand__logo {
    transition: color 0.25s ease, background-color 0.25s ease;
  }

  .header-nav-wrap {
    position: relative;
    z-index: 1;
    background: transparent;
    min-height: 0;
  }

  .header-top__inner {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: clamp(20px, 5vw, 28px);
    padding-bottom: clamp(18px, 4vw, 24px);
  }

  .header-contacts--desktop {
    display: none !important;
  }

  .header-brand {
    flex: 1;
    min-width: 0;
    justify-content: flex-start;
    text-align: left;
  }

  .header-brand__text {
    text-align: left;
  }

  .header-top .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    border: 2px solid transparent;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
  }

  .header-top .nav-toggle[aria-expanded="true"] {
    border-color: var(--color-close-border);
  }

  body.nav-open .header-top .nav-toggle {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.45);
  }

  body.nav-open .header-top .nav-toggle[aria-expanded="true"] {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.65);
  }

  .header-nav-bar {
    justify-content: stretch;
    flex-wrap: wrap;
    min-height: 0;
    padding: 0;
  }

  .main-nav {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: var(--mobile-menu-top) 0 0;
    box-sizing: border-box;
    background: var(--color-nav-bg);
    transform: translate3d(100%, 0, 0);
    transition: transform var(--mobile-menu-duration) var(--mobile-menu-ease);
    pointer-events: none;
    overflow: hidden;
    border: none;
  }

  .main-nav.is-open {
    transform: translate3d(0, 0, 0);
    pointer-events: auto;
  }

  .main-nav__mobile-scroll {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
  }

  .main-nav__drawer-contacts {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(18px, 4vw, 26px);
    padding: clamp(22px, 5vw, 32px) var(--container-pad) clamp(20px, 4vw, 28px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .main-nav__drawer-contacts .header-icon--accent {
    background: var(--color-menu-accent);
  }

  .main-nav__drawer-contacts .header-social {
    justify-content: center;
  }

  .main-nav__drawer-contacts .header-social__link {
    color: rgba(255, 255, 255, 0.82);
  }

  .main-nav__drawer-contacts .header-social__link:hover {
    color: #ffffff;
  }

  .main-nav__drawer-contacts .header-phone,
  .main-nav__drawer-contacts .header-address {
    justify-content: center;
  }

  .main-nav__drawer-contacts .header-phone__number {
    color: #ffffff;
  }

  .main-nav__drawer-contacts .header-address__text {
    color: rgba(255, 255, 255, 0.94);
    white-space: normal;
    text-align: center;
    max-width: 320px;
  }

  .main-nav__list {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    min-height: auto;
    padding: 8px 0 28px;
  }

  .main-nav__list li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  }

  .main-nav__list li:last-child {
    border-bottom: none;
  }

  .main-nav__list a {
    display: flex;
    align-items: center;
    min-height: 54px;
    padding: 14px var(--container-pad);
    white-space: normal;
    font-size: 15px;
  }
}

@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
  .main-nav {
    transition-duration: 0.01ms;
  }
}

/* ——— Narrow phones 375px ——— */
@media (max-width: 375px) {
  .header-brand__logo {
    width: 64px;
    height: 64px;
    font-size: 12px;
  }

  .header-brand__name {
    font-size: 18px;
  }

  .header-brand__tagline {
    font-size: 13px;
  }

  .header-phone__number {
    font-size: 16px;
  }

  .header-address__text {
    font-size: 14px;
  }
}

/* Body scroll lock when menu open (optional, mobile only) */
body.nav-open {
  overflow: hidden;
}

/* ——— Site footer ——— */
.site-footer {
  --footer-bg: #1e1e1e;
  --footer-text: #ffffff;
  --footer-muted: rgba(255, 255, 255, 0.62);
  --footer-border: rgba(255, 255, 255, 0.1);
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: clamp(36px, 5vw, 52px) 0 clamp(28px, 4vw, 40px);
  margin-top: auto;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 40px);
}

.site-footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(20px, 4vw, 40px);
  flex-wrap: wrap;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
}

.site-footer__logo {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #3a3a3a;
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-footer__logo--image {
  display: block;
  object-fit: contain;
  background: transparent;
}

.site-footer__name {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 700;
  color: var(--footer-text);
  line-height: 1.2;
  font-family: var(--font-hero);
}

.site-footer__tagline {
  margin: 0;
  font-size: 14px;
  color: var(--footer-muted);
  line-height: 1.3;
}

.site-footer__top-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(16px, 3vw, 28px);
  justify-content: flex-end;
}

.site-footer__social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-footer__social-link {
  color: var(--footer-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.site-footer__social-link:hover {
  color: rgba(255, 255, 255, 0.92);
}

.site-footer__social-icon {
  width: 22px;
  height: 22px;
}

.site-footer__cta {
  padding: 14px 28px;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ffffff;
  background: linear-gradient(145deg, var(--color-accent) 0%, #a82ea3 100%);
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  transition: filter 0.2s, transform 0.15s;
  white-space: nowrap;
}

.site-footer__cta:hover {
  filter: brightness(1.06);
}

.site-footer__cta:active {
  transform: translateY(1px);
}

.site-footer__cta:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.site-footer__contacts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 32px);
  align-items: start;
}

.site-footer__contact {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.site-footer__contact-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-footer__contact-icon svg {
  width: 20px;
  height: 20px;
}

.site-footer__contact-body {
  min-width: 0;
}

.site-footer__contact-label {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--footer-muted);
  line-height: 1.3;
}

.site-footer__contact-value {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--footer-text);
  line-height: 1.35;
  word-break: break-word;
}

a.site-footer__contact-value {
  text-decoration: none;
  transition: color 0.2s, opacity 0.2s;
}

a.site-footer__contact-value:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: clamp(20px, 3vw, 28px);
  border-top: 1px solid var(--footer-border);
}

.site-footer__legal {
  flex: 1 1 280px;
  min-width: 0;
}

.site-footer__copyright {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--footer-muted);
}

.site-footer__doc-links {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--footer-muted);
}

.site-footer__doc-link {
  display: inline;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.2s;
}

.site-footer__doc-link:hover {
  color: rgba(255, 255, 255, 0.92);
}

.site-footer__doc-link:focus-visible {
  outline: 2px solid var(--color-hero-accent);
  outline-offset: 2px;
}

.site-footer__doc-sep {
  margin: 0 6px;
  opacity: 0.55;
}

.site-footer__to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  font-size: 13px;
  color: var(--footer-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer__to-top:hover {
  color: rgba(255, 255, 255, 0.92);
}

.site-footer__to-top-icon {
  width: 18px;
  height: 18px;
}

@media (max-width: 1100px) {
  .site-footer__contacts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-footer__top {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer__top-right {
    width: 100%;
    justify-content: space-between;
  }

  .site-footer__contacts {
    grid-template-columns: 1fr;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer__to-top {
    align-self: flex-end;
  }
}

/* ——— Страница «Галерея» ——— */
.gallery-page {
  padding-bottom: clamp(48px, 6vw, 80px);
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: clamp(20px, 3vw, 32px) 0 clamp(24px, 4vw, 40px);
}

.gallery-filters__btn {
  margin: 0;
  padding: 10px 18px;
  font-family: var(--font-hero);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  background: #f3f4f6;
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.gallery-filters__btn:hover {
  background: #e8eaed;
}

.gallery-filters__btn.is-active {
  color: #fff;
  background: var(--color-hero-accent);
  border-color: var(--color-hero-accent);
}

.gallery-filters__btn:focus-visible {
  outline: 2px solid var(--color-hero-accent);
  outline-offset: 2px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: clamp(16px, 2.5vw, 24px);
}

.gallery-grid__item {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gallery-grid__item[hidden] {
  display: none;
}

.gallery-grid__trigger {
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 12px;
  overflow: hidden;
  cursor: zoom-in;
  background: #e8eaed;
  appearance: none;
  -webkit-appearance: none;
}

.gallery-grid__trigger img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-grid__trigger:hover img {
  transform: scale(1.03);
}

.gallery-grid__trigger:focus-visible {
  outline: 2px solid var(--color-hero-accent);
  outline-offset: 2px;
}

.gallery-grid__caption {
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--color-text-muted, #5c6370);
}

.gallery-empty {
  margin-top: 1rem;
  color: var(--color-text-muted, #5c6370);
}

.gallery-empty--hidden {
  display: none;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

.gallery-lightbox[hidden] {
  display: none !important;
}

.gallery-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 22, 0.88);
}

.gallery-lightbox__dialog {
  position: relative;
  z-index: 1;
  max-width: min(1100px, 100%);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.gallery-lightbox__img {
  max-width: 100%;
  max-height: calc(90vh - 48px);
  width: auto;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
}

.gallery-lightbox__caption {
  margin: 0;
  color: #fff;
  font-size: 1rem;
  text-align: center;
}

.gallery-lightbox__close {
  position: absolute;
  top: -40px;
  right: 0;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  font-size: 1.75rem;
  line-height: 1;
  color: #fff;
  background: transparent;
  border: none;
  cursor: pointer;
}

body.gallery-lightbox-open {
  overflow: hidden;
}
