/* fftime — base styles for Evolution CMS */

:root {
  --color-text: #1a1a1a;
  --color-text-muted: #555;
  --color-bg: #fff;
  --color-bg-alt: #f5f5f5;
  --color-accent: #2563eb;
  --color-accent-hover: #1d4ed8;
  --color-border: #e5e7eb;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container-max: 1420px;
  --container-padding: 20px;
  --section-padding-y: 80px;
  --header-height: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* Typography */
h1, h2, h3, h4 { margin: 0 0 0.5em; font-weight: 600; line-height: 1.2; }
h1 { font-size: clamp(1.75rem, 4vw, 2.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.section-title { margin-bottom: 1rem; }
.section-lead { color: var(--color-text-muted); margin-bottom: 1.5rem; max-width: 90ch; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 0 2rem;
  font-size: 1rem;
  font-weight: 500;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover { background: var(--color-accent-hover); text-decoration: none; }
.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-border);
}
.btn-outline:hover { border-color: var(--color-accent); color: var(--color-accent); text-decoration: none; }

/* Section spacing */
.section { padding-top: var(--section-padding-y); padding-bottom: var(--section-padding-y); }
.section--alt { background: var(--color-bg-alt); }

/* Inner page (e.g. О компании) */
.main-inner .content-page { min-height: 50vh; }
.container--text { max-width: 720px; }
.container--text h1 { font-size: 1.75rem; margin-bottom: 1rem; }
.container--text h2 { font-size: 1.375rem; margin: 1.5rem 0 0.5rem; }
.container--text p { margin: 0 0 1rem; line-height: 1.6; }
.container--text ul, .container--text ol { margin: 0 0 1rem; padding-left: 1.5rem; }
.container--text li { margin-bottom: 0.25rem; }
.content-page__list { list-style-type: disc; list-style-position: outside; }
.content-page__heading-spaced { margin-top: 2.5rem !important; }

/* 404 page */
.error-page__inner { text-align: center; max-width: 520px; margin: 0 auto; padding: 2rem 0; min-height: 50vh; display: flex; flex-direction: column; justify-content: center; }
.error-page__code { font-size: clamp(4rem, 12vw, 6rem); font-weight: 700; color: var(--color-accent); line-height: 1; margin: 0 0 0.5rem; }
.error-page__title { font-size: 1.5rem; margin: 0 0 1rem; }
.error-page__text { color: var(--color-text-muted); margin: 0 0 1.5rem; line-height: 1.6; }
.error-page__nav { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.error-page__btn { min-height: 48px; }

/* Cards */
.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.5rem;
  height: 100%;
}
.card__icon { margin-bottom: 1rem; }
.card__title { font-size: 1.125rem; margin-bottom: 0.5rem; }
.card__text { color: var(--color-text-muted); font-size: 0.9375rem; }

/* Grid */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* Table */
.table-wrap { overflow-x: auto; }
.prices-table {
  width: 100%;
  border-collapse: collapse;
}
.prices-table th,
.prices-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}
.prices-table th { font-weight: 600; background: var(--color-bg-alt); }
.prices-table td:last-child { text-align: right; white-space: nowrap; }

/* Form */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; margin-bottom: 0.5rem; font-weight: 500; }
.form-input {
  width: 100%;
  max-width: 100px;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
}
.form-row { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.form-check { display: inline-flex; align-items: center; gap: 0.5rem; margin-right: 1rem; margin-bottom: 0.5rem; }
.form-actions { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-top: 1.5rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--color-bg);
  box-shadow: 0 1px 0 var(--color-border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.site-header__logo { display: block; }
.site-header__logo img { height: 45px; width: auto; }
.nav-list { display: flex; gap: 2rem; }
.nav-list__link--active { font-weight: 600; }
.site-header__contacts { display: flex; align-items: center; gap: 1rem; }
.site-header__icon { display: block; }
.site-header__icon img { width: 24px; height: 24px; }
.site-header__phone { font-weight: 500; white-space: nowrap; }
.site-header__burger { display: none; }
@media (max-width: 900px) {
  .site-header__nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--color-bg); box-shadow: 0 4px 12px rgba(0,0,0,0.1); padding: 1rem; }
  .site-header__nav.is-open { display: block; }
  .site-header__nav .nav-list { flex-direction: column; gap: 0.5rem; }
  .site-header__burger { display: block; width: 40px; height: 40px; background: transparent; border: none; cursor: pointer; }
}

/* Hero — gradient block as on design */
.hero { padding-top: 2rem; padding-bottom: var(--section-padding-y); }
.hero__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2.5rem;
  align-items: center;
  background: linear-gradient(90deg, #1a237e 0%, #311b92 35%, #6a1b9a 65%, #ad1457 100%);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  overflow: hidden;
  min-height: 420px;
}
.hero__title {
  margin-bottom: 0.75rem;
  color: #fff;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.hero__subtitle {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 1.5rem;
  max-width: 52ch;
  line-height: 1.5;
}
.hero__features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 0.875rem;
  margin-bottom: 1.75rem;
  max-width: 720px;
  min-height: 220px;
}
.hero__feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  background: rgba(13, 27, 72, 0.75);
  border-radius: 12px;
  padding: 1rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  min-height: 0;
}
.hero__feature .hero__check {
  flex-shrink: 0;
  margin-bottom: 0.5rem;
  filter: brightness(0) invert(1);
}
.hero__feature span {
  color: #fff;
  font-size: 0.875rem;
  line-height: 1.35;
}
.hero__actions {
  display: flex;
  max-width: 720px;
}
.hero__actions .btn {
  width: 100%;
  height: 56px;
  min-height: 56px;
  padding: 0 2rem;
}
.hero .btn-primary {
  background: #ff6600;
  color: #fff;
  border: none;
  box-shadow:
    0 0 16px rgba(255, 102, 0, 0.7),
    0 0 32px rgba(255, 102, 0, 0.5),
    0 0 48px rgba(255, 102, 0, 0.3),
    0 4px 14px rgba(230, 81, 0, 0.4);
}
.hero .btn-primary:hover {
  background: #ff8533;
  box-shadow:
    0 0 24px rgba(255, 102, 0, 0.9),
    0 0 48px rgba(255, 102, 0, 0.6),
    0 0 64px rgba(255, 102, 0, 0.35),
    0 6px 20px rgba(230, 81, 0, 0.5);
  text-decoration: none;
}
.hero__media { border-radius: 12px; overflow: hidden; }
.hero__media img { border-radius: 12px; display: block; }
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; padding: 2rem 1.5rem; min-height: auto; }
  .hero__media { order: -1; }
  .hero__features { grid-template-columns: 1fr; grid-template-rows: auto; min-height: auto; }
  .hero__actions .btn { min-width: 100%; max-width: 100%; }
}

/* Services banner */
.services .section-title,
.services .section-lead { max-width: none; }
.services__banner { position: relative; margin: 2rem auto; border-radius: 12px; overflow: hidden; max-width: 1000px; }
.services__banner img { width: 100%; height: auto; }
.services__banner-btn { position: absolute; bottom: 2rem; right: 2rem; }

/* Why us */
.why-us__columns { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.why-us__lead { font-weight: 600; margin-bottom: 0.5rem; }
.why-us__advantages-title { font-size: 1.5rem; font-weight: 600; margin: 2.5rem 0 1.25rem; }
.why-us__cards {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
  margin-top: 1rem;
}
.why-us__cards .card--numbered {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  padding-left: 1.5rem;
  background: #f8f9fa;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.06);
  min-height: 140px;
}
.why-us__cards .card__num {
  position: static;
  display: block;
  font-size: 2.25rem;
  font-weight: 700;
  color: #3f51b5;
  line-height: 1;
  margin-bottom: 0.75rem;
}
.why-us__cards .card__text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #333;
}
@media (max-width: 1200px) {
  .why-us__cards { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .why-us__columns { grid-template-columns: 1fr; }
  .why-us__cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .why-us__cards { grid-template-columns: 1fr; }
}
.grid--4-tablet { }
@media (min-width: 768px) { .grid--4-tablet { grid-template-columns: repeat(4, 1fr); } }
.card--numbered { position: relative; padding-left: 3.5rem; }
.card__num { position: absolute; left: 1.5rem; top: 1.5rem; font-size: 1.25rem; font-weight: 700; color: var(--color-accent); }

/* Founder */
.founder__inner { display: grid; grid-template-columns: 511px 1fr; gap: 3rem; align-items: start; }
.founder__media img { border-radius: 12px; }
.founder__title { margin-bottom: 1rem; }
.founder__name { font-weight: 600; margin-bottom: 0.5rem; }
.founder__tagline { font-weight: 600; font-size: 1.25rem; margin: 1rem 0; }
@media (max-width: 900px) { .founder__inner { grid-template-columns: 1fr; } }

/* Gallery */
.gallery__grid { display: grid; grid-template-columns: 453px 1fr; gap: 1.5rem; }
.gallery__video video { width: 100%; height: auto; border-radius: 12px; }
.gallery__images { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }
.gallery__images img { width: 100%; height: auto; object-fit: cover; border-radius: 8px; }
@media (max-width: 900px) {
  .gallery__grid { grid-template-columns: 1fr; }
  .gallery__images { grid-template-columns: repeat(2, 1fr); }
}

/* Calculator */
.calculator-form { max-width: 815px; padding: 2rem; background: var(--color-bg); border: 1px solid var(--color-border); border-radius: 12px; }
.form-row--wrap { flex-wrap: wrap; }
.calculator__result { margin-top: 1rem; font-weight: 600; }

/* Algorithm */
.card--algorithm { position: relative; padding-top: 3rem; }
.card--algorithm .card__num { position: absolute; top: 1rem; left: 1.5rem; }
.card--algorithm .card__icon { margin-top: 0.5rem; }

/* Contacts */
.contacts__grid { display: grid; grid-template-columns: 645px 1fr; gap: 2rem; }
.contacts__map iframe { width: 100%; height: 500px; border-radius: 12px; }
.contacts__label { font-weight: 600; margin: 1rem 0 0.25rem; }
.contacts__value { margin: 0; }
.contacts__messengers { display: flex; gap: 0.75rem; margin-top: 0.5rem; }
@media (max-width: 900px) { .contacts__grid { grid-template-columns: 1fr; } }

/* Contacts page (chunk_contacts_page) */
.contacts-page { background: var(--color-bg-alt); }
.contacts-page__title { font-size: 1.75rem; margin-bottom: 1.5rem; font-weight: 600; }
.contacts-page__card {
  background: var(--color-bg);
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  overflow: hidden;
}
.contacts-page__map {
  width: 100%;
  height: 400px;
  min-height: 300px;
}
.contacts-page__map iframe { width: 100%; height: 100%; display: block; }
.contacts-page__bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 2.5rem 2rem;
}
.contacts-page__subtitle {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  margin: 0 0 0.5rem;
}
.contacts-page__heading {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 1.25rem;
}
.contacts-page__list { margin: 0; }
.contacts-page__list dt,
.contacts-page__list dd { margin: 0; }
.contacts-page__label {
  font-weight: 600;
  font-size: 0.9375rem;
  margin-top: 1rem;
  color: var(--color-text);
}
.contacts-page__label:first-child { margin-top: 0; }
.contacts-page__value {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin: 0.25rem 0 0;
}
.contacts-page__value a { color: inherit; }
.contacts-page__value a:hover { color: var(--color-accent); }
.contacts-page__form { display: flex; flex-direction: column; gap: 1rem; }
.contacts-page__field { display: block; }
.contacts-page__input,
.contacts-page__textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  transition: border-color 0.2s;
}
.contacts-page__input::placeholder,
.contacts-page__textarea::placeholder { color: var(--color-text-muted); }
.contacts-page__input:focus,
.contacts-page__textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}
.contacts-page__textarea { resize: vertical; min-height: 120px; }
.contacts-page__attach {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
  min-height: auto;
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.contacts-page__attach:hover { background: rgba(37, 99, 235, 0.08); }
.contacts-page__submit { align-self: flex-start; margin-top: 0.5rem; }
@media (max-width: 900px) {
  .contacts-page__bottom { grid-template-columns: 1fr; padding: 1.5rem 1.25rem; }
}

/* Footer */
.site-footer { background: var(--color-text); color: #fff; padding: 2rem 0; }
.site-footer a { color: inherit; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: start; }
.site-footer__copy { margin-bottom: 0.5rem; }
.site-footer__disclaimer { font-size: 0.875rem; opacity: 0.9; margin-bottom: 1rem; max-width: 400px; }
.site-footer__link { font-size: 0.9375rem; }
.site-footer__contacts { text-align: right; }
.site-footer__contacts p { margin: 0.25rem 0; }
.site-footer__contacts a:first-of-type { margin-left: 0.5rem; }
.site-footer__contacts img { display: inline-block; vertical-align: middle; margin-left: 0.25rem; }
.site-footer__schedule { font-size: 0.875rem; opacity: 0.9; margin-top: 0.5rem; }
@media (max-width: 768px) {
  .site-footer__inner { grid-template-columns: 1fr; text-align: center; }
  .site-footer__contacts { text-align: center; }
}

/* Utility */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
