/* ===== DESIGN TOKENS (Laitel) ===== */
:root {
  /* Primitive — brand palette: графит #383838, бежево-серый #A69C92 */
  --graphite-900: #1F1F1F;
  --graphite-800: #2B2B2B;
  --graphite-700: #383838;
  --warm-gray-600: #6E675F;
  --beige-700: #7A7066;
  --beige-500: #A69C92;
  --beige-300: #C9C1B8;
  --beige-200: #E4DED8;
  --beige-100: #F3F0EC;
  --beige-50:  #FAF8F6;
  --white: #FFFFFF;

  /* Semantic */
  --color-primary: var(--graphite-700);
  --color-primary-hover: var(--graphite-900);
  --color-accent: var(--beige-500);
  --color-accent-text: var(--beige-700);
  --color-accent-on-dark: var(--beige-300);
  --color-text: var(--graphite-700);
  --color-text-strong: var(--graphite-800);
  --color-text-muted: var(--warm-gray-600);
  --color-surface: var(--white);
  --color-surface-alt: var(--beige-100);
  --color-border: var(--beige-200);

  /* Shape & motion */
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(56,56,56,.08);
  --shadow-lg: 0 12px 40px rgba(56,56,56,.16);
  --transition: .25s ease;

  /* Typography */
  --font: 'Montserrat', system-ui, sans-serif;
  --font-heading: 'Montserrat', system-ui, sans-serif;

  /* Aliases used by inner pages */
  --primary: var(--color-primary);
  --dark: var(--color-text-strong);
  --gray: var(--color-text-muted);
  --gray-light: var(--color-surface-alt);
  --border: var(--color-border);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-surface);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }

.section__label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--color-accent-text);
  margin-bottom: 12px;
}

.section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.625rem, 2.8vw, 2.25rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text-strong);
  margin-bottom: 20px;
}

.section__sub {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin-bottom: 48px;
}

.center { text-align: center; }
.center.section__sub { margin-left: auto; margin-right: auto; }

.hidden { display: none !important; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: var(--radius-sm);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1;
  transition: all var(--transition);
  cursor: pointer;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--white);
}
.btn--primary:hover { background: var(--color-primary-hover); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(31,31,31,.3); }

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.6);
}
.btn--outline:hover { background: rgba(255,255,255,.12); border-color: var(--white); }

.btn--white {
  background: var(--graphite-800);
  color: var(--white);
}
.btn--white:hover { background: var(--graphite-900); transform: translateY(-1px); }

.btn--sm {
  padding: 11px 20px;
  font-size: .875rem;
  background: var(--color-primary);
  color: var(--white);
  border-radius: 8px;
}
.btn--sm:hover { background: var(--color-primary-hover); }

.btn--full { width: 100%; }

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250,248,246,.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.3);
  transition: background var(--transition), box-shadow var(--transition);
}

.header.scrolled {
  background: rgba(250,248,246,.86);
  box-shadow: var(--shadow);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 32px;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.logo img { height: 36px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  font-size: .9375rem;
  font-weight: 500;
  color: var(--graphite-700);
  transition: color var(--transition);
  white-space: nowrap;
}
.nav a:hover { color: var(--beige-700); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--graphite-700);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: url('images/hero.jpg') center/cover no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(31,31,31,.88) 0%, rgba(43,43,43,.62) 60%, rgba(56,56,56,.38) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  padding-top: 60px;
  padding-bottom: 60px;
}

.hero__label {
  display: inline-block;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(201,193,184,.45);
  color: var(--beige-300);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 24px;
}
.hero__title span { color: var(--color-accent-on-dark); }

.hero__sub {
  font-size: 1.0625rem;
  color: rgba(255,255,255,.82);
  max-width: 600px;
  margin-bottom: 40px;
  line-height: 1.75;
}

.hero__btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero .btn--primary { background: var(--beige-200); color: var(--graphite-800); }
.hero .btn--primary:hover { background: var(--white); box-shadow: 0 6px 20px rgba(0,0,0,.3); }

.hero__stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.hero__stat strong {
  display: block;
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.hero__stat span {
  font-size: .875rem;
  color: rgba(255,255,255,.68);
  margin-top: 6px;
  display: block;
}

/* ===== ABOUT ===== */
.about { background: var(--color-surface); }

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about__image-wrap {
  position: relative;
}

.about__image {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.about__badge {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--graphite-700);
  color: var(--white);
  padding: 20px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  text-align: center;
  min-width: 160px;
}
.about__badge strong {
  display: block;
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1;
  color: var(--beige-300);
}
.about__badge span {
  font-size: .8125rem;
  opacity: .85;
  margin-top: 6px;
  display: block;
}

.about__text p {
  color: var(--color-text-muted);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about__list {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.about__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}
.check {
  color: var(--color-accent-text);
  font-weight: 700;
  flex-shrink: 0;
}

/* ===== CATALOG ===== */
.catalog { background: var(--color-surface-alt); }

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.tab {
  padding: 11px 24px;
  border-radius: 100px;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--color-text-muted);
  background: var(--white);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}
.tab:hover { color: var(--graphite-700); border-color: var(--beige-500); }
.tab--active {
  background: var(--color-primary);
  color: var(--white);
  border-color: var(--color-primary);
}
.tab--active:hover { color: var(--white); border-color: var(--color-primary); }

.catalog__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  margin-bottom: 48px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.card__img {
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--beige-100);
}
/* Фото любой пропорции показываем целиком; пустые поля заполняет размытая копия того же снимка */
.card__img::before,
.card__img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--img) center / cover no-repeat;
}
.card__img::before {
  inset: -24px;
  filter: blur(22px) saturate(.9);
  opacity: .85;
}
.card__img::after {
  background-size: contain;
}

.card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.card__body h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text-strong);
}
.card__body p {
  font-size: .9rem;
  color: var(--color-text-muted);
  flex: 1;
}
.card__body .btn--sm {
  margin-top: auto;
  align-self: flex-start;
}

.catalog__cta {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}
.catalog__cta p {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

/* ===== ADVANTAGES ===== */
.advantages { background: var(--color-surface); }

.adv__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.adv__card {
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}
.adv__card:hover {
  border-color: var(--beige-500);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.adv__icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(166,156,146,.2);
  border-radius: 10px;
  padding: 8px;
  flex-shrink: 0;
}
.adv__icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.adv__card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--color-text-strong);
}
.adv__card p {
  font-size: .9rem;
  color: var(--color-text-muted);
  line-height: 1.75;
}

/* ===== PROCESS ===== */
.process { background: var(--graphite-700); }
.process .section__label { color: var(--color-accent-on-dark); }
.process .section__title { color: var(--white); }

.process__steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}

.process__step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.process__num {
  font-size: 2.25rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--beige-500);
  line-height: 1;
  flex-shrink: 0;
  min-width: 56px;
}

.process__body h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}
.process__body p {
  font-size: .9rem;
  color: rgba(255,255,255,.66);
  line-height: 1.75;
}

/* ===== BANNER ===== */
.banner {
  background: var(--beige-500);
  padding: 72px 0;
}

.banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.banner__text h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--graphite-900);
  margin-bottom: 12px;
}
.banner__text p {
  color: var(--graphite-800);
  font-size: 1rem;
  max-width: 560px;
}

/* ===== CONTACT ===== */
.contact { background: var(--color-surface-alt); }

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 60px;
  align-items: flex-start;
}

.form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

.form__field label {
  font-size: .875rem;
  font-weight: 500;
  color: var(--color-text-strong);
}

.form__field input,
.form__field textarea {
  padding: 13px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: .9375rem;
  color: var(--color-text-strong);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  resize: vertical;
}

.form__field input:focus,
.form__field textarea:focus {
  border-color: var(--graphite-700);
  box-shadow: 0 0 0 3px rgba(166,156,146,.3);
}

.form__field input.error,
.form__field textarea.error {
  border-color: #C0392B;
}

.form__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .875rem;
  color: var(--color-text-muted);
}
.form__checkbox input { flex-shrink: 0; margin-top: 3px; accent-color: var(--graphite-700); }
.form__checkbox a { color: var(--graphite-700); text-decoration: underline; }

.form__success {
  background: #E3EFE6;
  color: #1F5130;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form__error {
  background: #F6E4E1;
  color: #8A2E22;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-size: .9375rem;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact__block {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact__block h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--color-text-strong);
  border-bottom: 2px solid var(--beige-500);
  padding-bottom: 12px;
}

.contact__block p {
  font-size: .9375rem;
  color: var(--color-text-muted);
  margin-bottom: 10px;
  line-height: 1.5;
}
.contact__block p strong { color: var(--color-text-strong); }
.contact__block a { color: var(--graphite-700); font-weight: 500; }
.contact__block a:hover { text-decoration: underline; }

/* ===== FOOTER ===== */
.footer { background: var(--graphite-800); padding-top: 72px; }

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer__brand .logo img { height: 40px; }
.footer__brand p {
  color: rgba(255,255,255,.55);
  font-size: .9375rem;
  margin-top: 16px;
  line-height: 1.7;
}

.footer__links h4,
.footer__contact h4 {
  color: var(--white);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__links a {
  color: rgba(255,255,255,.55);
  font-size: .9375rem;
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--white); }

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__contact a {
  color: rgba(255,255,255,.55);
  font-size: .9375rem;
  transition: color var(--transition);
}
.footer__contact a:hover { color: var(--beige-300); }
.footer__small {
  margin-top: 8px;
  color: rgba(255,255,255,.38) !important;
  font-size: .8125rem !important;
}

.footer__disclaimer {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 16px 0;
  font-size: .8125rem;
  color: rgba(255,255,255,.4);
  line-height: 1.6;
}

.footer__bottom {
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,.08);
}
.footer__bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__bottom span,
.footer__bottom a {
  font-size: .875rem;
  color: rgba(255,255,255,.45);
}
.footer__bottom a:hover { color: rgba(255,255,255,.85); }
.footer__bottom-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* ===== BACK TO TOP ===== */
.back-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--graphite-700);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition);
  z-index: 50;
}
.back-top.visible { opacity: 1; pointer-events: auto; }
.back-top:hover { background: var(--graphite-900); transform: translateY(-2px); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .about__grid { grid-template-columns: 1fr; gap: 60px; }
  .about__image-wrap { order: -1; }
  .about__image { height: 400px; }
  .about__badge { right: 0; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .header__inner { height: 64px; }
  .logo img { height: 30px; }
  .hero { padding-top: 64px; }
  .nav { display: none; flex-direction: column; position: fixed; top: 64px; left: 0; right: 0; background: var(--beige-50); padding: 24px; border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow-lg); gap: 20px; }
  .nav.open { display: flex; }
  .nav a { font-size: 1.0625rem; }
  .burger { display: flex; }
  .hero__btns { flex-direction: column; }
  .hero__btns .btn { text-align: center; }
  .hero__stats { gap: 24px; }
  .form__row { grid-template-columns: 1fr; }
  .banner__inner { flex-direction: column; text-align: center; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__brand { grid-column: auto; }
  .process__steps { grid-template-columns: 1fr; }
  .adv__grid { grid-template-columns: 1fr; }
  .catalog__grid { grid-template-columns: 1fr; }
  .footer__bottom .container { flex-direction: column; text-align: center; }
  .footer__bottom-links { justify-content: center; }
  .back-top { bottom: 20px; right: 20px; }
}

@media (max-width: 480px) {
  .hero__title { font-size: 1.75rem; }
  .form { padding: 24px; }
  .about__badge { position: static; margin-top: 16px; display: inline-flex; gap: 12px; align-items: center; }
  .about__badge strong { font-size: 1.5rem; }
}
