﻿/* =========================================================
   ФИКСТЕХ — корпоративный стиль 
   чистая верстка, строгий минимализм, акценты на типографике
   ========================================================= */

/* Сброс/база */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button,
input {
  font: inherit;
}

:root {
  /* Цвета */
  --bg: #ffffff;
  --text: #0b0b0c;
  --muted: #5a5f66;
  --line: #e7e7ea;
  --soft: #f6f6f7;
  --ink: #121316;
  --overlay: rgba(0, 0, 0, 0.8);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.18);

  /* Типографика */
  --font-serif: "Fraunces", "Georgia", "Times New Roman", serif;
  --font-sans: "IBM Plex Sans", "Segoe UI", "Helvetica Neue", sans-serif;

  /* Геометрия */
  --container: 1180px;
  --radius: 12px;
  --radius-sm: 10px;

  /* Анимации */
  --t: 170ms;
}

/* Контейнер */
.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

/* Утилиты */
.scroll-lock {
  overflow: hidden;
}

/* =========================================================
   Кнопки
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 0;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  transition: transform var(--t) ease, background var(--t) ease, border-color var(--t) ease, color var(--t) ease;
}

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

.btn--primary {
  background: #000;
  border-color: #000;
  color: #fff;
}

.btn--primary:hover {
  background: #111;
  border-color: #111;
}

.btn--outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.75);
  background: transparent;
}

.btn--outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

/* Кнопка в hero: чуть мягче и "дороже" */
.hero .btn--outline {
  padding: 12px 22px;
  border-color: rgba(255, 255, 255, 0.6);
}

.hero .btn--outline:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* =========================================================
   Верхняя шапка
   ========================================================= */
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 40; /* чтобы выпадающие меню не уходили "под" hero */
}

.topbar__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
}

.brand {
  display: inline-grid;
  gap: 2px;
  justify-items: start;
}

.brand__name {
  font-family: var(--font-serif);
  font-size: 28px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.contacts {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 24px;
  color: #111;
  font-size: 14px;
  white-space: nowrap;
}

.contacts__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.contacts__label {
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.contacts__link {
  border-bottom: 1px solid transparent;
  transition: border-color var(--t) ease, color var(--t) ease;
}

.contacts__link:hover {
  border-color: #111;
}

.contacts__sep {
  color: var(--muted);
}

.icon {
  color: #111;
  opacity: 0.95;
}

.topbar .btn {
  justify-self: end;
}

/* =========================================================
   Навигация
   ========================================================= */
.navline {
  background: linear-gradient(#fff, #fcfcfd);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 40; /* слой навигации выше hero */
}

.navline__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
}

.nav {
  width: 100%;
}

.nav__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 26px;
  align-items: center;
  justify-content: center;
}

.nav__item {
  position: relative;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 2px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  font-size: 12px;
  color: #111;
}

.nav__link:hover {
  color: #000;
}

.caret {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.75;
  margin-top: -2px;
}

.nav__sub {
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
  padding: 10px 10px;
  list-style: none;
  margin: 0;
  border-radius: 10px;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity var(--t) ease, transform var(--t) ease;
  z-index: 50;
}

.nav__sublink {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: #111;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.nav__sublink:hover {
  background: var(--soft);
}

/* Дропдаун на десктопе: hover и focus (для клавиатуры) */
.nav__item--has-sub:hover .nav__sub {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Открытие по клику (aria-expanded) */
.nav__link[aria-expanded="true"] + .nav__sub {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Поворот "галочки" при открытии */
.nav__item--has-sub:hover .caret,
.nav__link[aria-expanded="true"] .caret {
  transform: rotate(-135deg);
}

/* =========================================================
   Бургер
   ========================================================= */
.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.burger__lines {
  width: 18px;
  height: 2px;
  background: #111;
  position: relative;
  display: block;
}

.burger__lines::before,
.burger__lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: #111;
}

.burger__lines::before {
  top: -6px;
}

.burger__lines::after {
  top: 6px;
}

/* Затемнение для мобильного меню */
.scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
  z-index: 50;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  background-image: url("../img/logo.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.55) 70%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 60px 0;
}

.hero-card {
  width: min(760px, 100%);
  background: var(--overlay);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow);
  padding: 46px 48px;
  color: #fff;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  display: grid;
  gap: 18px;
  isolation: isolate; /* чтобы псевдо-элементы не перекрывали текст */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-card::before {
  /* Легкая "подсветка" внутри плашки, чтобы она выглядела мягче */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 55%);
  pointer-events: none;
  z-index: 0;
}

.hero-card::after {
  /* Тонкий акцент слева (как в строгих референсах) */
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: rgba(255, 255, 255, 0.22);
  pointer-events: none;
  z-index: 0;
}

.hero-card > * {
  position: relative;
  z-index: 1;
}

.hero-card__title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.05;
  letter-spacing: 0.01em;
  font-weight: 600;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.hero-card__subtitle {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
  max-width: 62ch;
}

/* =========================================================
   Секции контента
   ========================================================= */
.section {
  padding: 72px 0;
  background: #fff;
}

.section--alt {
  background: linear-gradient(180deg, #fff 0%, #fbfbfc 60%, #fff 100%);
}

.section__inner {
  display: grid;
  gap: 18px;
}

.section__title {
  margin: 0;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 32px;
  letter-spacing: 0.01em;
}

.section__text {
  margin: 0;
  text-align: center;
  color: var(--muted);
  max-width: 82ch;
  justify-self: center;
}

/* =========================================================
   Футер
   ========================================================= */
.footer {
  background: #1b1c1f;
  color: rgba(255, 255, 255, 0.86);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 42px 0;
}

.footer__name {
  font-family: var(--font-serif);
  font-size: 22px;
  letter-spacing: 0.08em;
  color: #fff;
}

.footer__desc {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.7);
}

.footer__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  justify-items: start;
}

.footer__title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
}

.footer__link {
  display: inline-block;
  padding: 4px 0;
  color: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t) ease, color var(--t) ease;
}

.footer__link:hover {
  border-color: rgba(255, 255, 255, 0.55);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.footer__bottom-inner {
  padding: 14px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.footer__dot {
  opacity: 0.6;
}

.footer__link--muted {
  color: rgba(255, 255, 255, 0.62);
}

/* =========================================================
   Адаптивность
   ========================================================= */
@media (max-width: 1100px) {
  .contacts {
    gap: 16px;
    font-size: 13px;
  }
}

@media (max-width: 900px) {
  .topbar__inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand button"
      "contacts contacts";
  }

  .brand {
    grid-area: brand;
  }

  .topbar .btn {
    grid-area: button;
  }

  .contacts {
    grid-area: contacts;
    justify-self: start;
    flex-wrap: wrap;
    white-space: normal;
    gap: 10px 18px;
  }

  .burger {
    display: inline-flex;
  }

  .nav__list {
    justify-content: flex-start;
    gap: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 14px;
  }

  /* Мобильная панель меню */
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(380px, 86vw);
    background: #fff;
    border-left: 1px solid var(--line);
    transform: translateX(102%);
    transition: transform var(--t) ease;
    z-index: 55;
    overflow: auto;
    padding-top: 64px; /* чтобы не давило к краю */
  }

  .nav-open .nav {
    transform: translateX(0);
  }

  /* Тогглы подменю (аккордеон) */
  .nav__item--has-sub .nav__sub {
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    box-shadow: none;
    border: 0;
    padding: 0 0 10px;
    display: none;
  }

  .nav__item--has-sub .nav__link {
    width: 100%;
    justify-content: space-between;
    padding: 14px 10px;
    border-bottom: 1px solid var(--line);
  }

  .nav__item--has-sub .nav__link[aria-expanded="true"] + .nav__sub {
    display: block;
  }

  .nav__sublink {
    padding: 10px 10px;
  }

  .hero-card {
    padding: 28px 22px;
  }

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

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

