/* ============================================================
   АтомЭнергоРезерв — стили сайта-визитки
   Светлая тема: спокойные тона, мягкий синий акцент
   Шрифты: Lora (заголовки, серифный) + Inter (текст)
   ============================================================ */

   :root {
    --bg:        #f7f6f2;
    --bg-soft:   #eef1f4;
    --card:      #ffffff;
    --line:      #e2e0d8;
    --text:      #2e3440;
    --muted:     #6b7280;
    --accent:    #457ab2;
    --accent-2:  #D97706;
    --highlight: #0d9488;
    --radius:    14px;
    --btn-radius: 8px;
  
    --font-head: 'Lora', Georgia, serif;
    --font-body: 'Inter', system-ui, sans-serif;
  }
  
  * { margin: 0; padding: 0; box-sizing: border-box; }
  
  html { scroll-behavior: smooth; }
  
  body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
  }
  
  img, svg { display: block; max-width: 100%; }
  a { color: inherit; text-decoration: none; }
  ul { list-style: none; }
  
  .container {
    width: min(1180px, 92%);
    margin-inline: auto;
  }
  
  /* ===== Акценты ===== */
  .accent { color: var(--accent); }
  
  /* ===== Кнопки ===== */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.8rem;
    border-radius: var(--btn-radius);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: .01em;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  }
  .btn:hover { transform: translateY(-2px); }
  
  .btn--primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 10px 30px rgba(74, 124, 155, .25);
  }
  .btn--primary:hover {
    box-shadow: 0 14px 38px rgba(74, 124, 155, .35);
    background: #D97706;
    border-color: #D97706;
  }
  
  .btn--accent {
    background: var(--accent-2);
    color: #fff;
    border-color: var(--accent-2);
    font-weight: 700;
    box-shadow: 0 10px 28px rgba(217, 119, 6, .35);
  }
  .btn--accent:hover {
    background: #b45309;
    border-color: #b45309;
    color: #fff;
    box-shadow: 0 14px 34px rgba(217, 119, 6, .45);
  }
  
  .btn--ghost {
    border-color: rgba(255, 255, 255, .7);
    color: #fff;
    background: rgba(15, 23, 42, .25);
    backdrop-filter: blur(4px);
  }
  .btn--ghost:hover {
    border-color: #D97706;
    color: #fff;
    background: rgba(217, 119, 6, .85);
  }
  
/* ===== Шапка ===== */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 0.6rem 0;
  background: #fff;
  transition: background .25s ease, box-shadow .25s ease;
}

.header--scrolled {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
  .header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }
  
  .logo { display: flex; align-items: center; gap: .6rem; }
  .logo__img {
    height: 54px; width: auto;
    display: block;
  }
  .logo__mark {
    width: 38px; height: 38px;
    color: var(--accent);
    display: grid; place-items: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--card);
  }
  .logo__text {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: .01em;
    white-space: nowrap;
    color: #1f2733;
  }
  .logo__text b { color: var(--accent); font-weight: 700; }
  .logo__text--footer { font-size: 1.2rem; }
  
  .nav { display: flex; gap: 1.6rem; }
  .nav a {
    position: relative;
    display: inline-block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--muted);
    transition: color .2s ease;
    padding-bottom: 3px;
  }
  .nav a:hover { color: var(--text); }
  .nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background-color: #D97706;
    border-radius: 1px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .nav a:hover::after {
    width: 100%;
  }
  .nav a.nav__link--active::after {
    width: 100%;
  }
  
  .header__actions { display: flex; align-items: center; gap: 1.2rem; }
  .header__phone {
    font-weight: 600;
    font-size: .92rem;
    padding: .55rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: var(--btn-radius);
    transition: border-color .2s ease, color .2s ease;
  }
  .header__phone:hover { border-color: var(--accent-2); color: var(--accent-2); }
  
  .burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 6px;
  }
  .burger span {
    width: 24px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform .25s ease, opacity .25s ease;
  }
  .burger--active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger--active span:nth-child(2) { opacity: 0; }
  .burger--active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }  
  
  /* ===== Hero ===== */
  .hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: 8rem 0 5rem;
    overflow: hidden;
    background: url('atom-station.svg') center bottom / cover no-repeat var(--bg);
  }
  
  .hero__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
  }
  
  .hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
      to right,
      rgb(23, 30, 46) 0%,
      rgba(22, 30, 57, 0.55) 45%,
      rgba(102, 140, 223, 0.25) 100%
    );
  }
  
  .hero__glow {
    position: absolute;
    right: -18%; top: -10%;
    width: 640px; height: 640px;
    background: radial-gradient(circle, rgba(74,124,155,.16), transparent 65%);
    filter: blur(40px);
    pointer-events: none;
  }
  .hero__tag {
    display: inline-block;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #fbbf24;
    background: rgba(15, 23, 42, .45);
    border: 1px solid rgba(217,119,6,.4);
    border-radius: var(--btn-radius);
    padding: .45rem 1.1rem;
    margin-bottom: 1.6rem;
  }
  .hero__title {
    font-family: var(--font-head);
    letter-spacing: 0;
    font-weight: 700;
    font-size: clamp(2rem, 5.2vw, 4.2rem);
    line-height: 1.12;
    margin-bottom: 1.4rem;
    color: #f7f6f2;
    text-shadow: 0 2px 18px rgba(15, 23, 42, .65), 0 1px 3px rgba(15, 23, 42, .5);
  }
  
  .hero__title-accent {
    color: #D97706;
    text-shadow: 0 2px 18px rgba(15, 23, 42, .55);
  }
  .hero__subtitle {
    display: inline-block;
    font-size: .9rem;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #f7f6f2;
    background: rgba(15, 23, 42, .65);
    border: 1px solid rgba(217,119,6,.4);
    border-radius: var(--btn-radius);
    padding: .45rem 1.1rem;
    margin-bottom: 1.6rem;
  }
  .hero__btns { display: flex; flex-wrap: wrap; gap: 1rem; }
  
  /* ===== Общие блоки секций ===== */
  .section { padding: 6rem 0; }
  
  .section__head { margin-bottom: 3rem; }
  .section__label {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--accent-2);
    margin-bottom: .8rem;
  }
  .section__title {
    font-family: var(--font-head);
    letter-spacing: 0;
    font-weight: 600;
    font-size: clamp(1.5rem, 3.2vw, 2.4rem);
    line-height: 1.25;
  }
  .section__lead {
    display: inline-block;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: .10em;
    color: #4a5568;
  }

  .section__all {
    display: inline-block;
    margin-top: 2.2rem;
    font-weight: 600;
    color: var(--accent);
    transition: letter-spacing .2s ease;
  }
  .section__all:hover { letter-spacing: .03em; }
 
/* Общий контейнер для всех иконок */
.expertise-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: var(--btn-radius);
  margin-bottom: 1.6rem;
}

.expertise-icon svg {
  width: 46px;
  height: 46px;
}

  /* ===== О нас / Статистика ===== */
  .about__grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 3rem;
    align-items: start;
  }
  .about__text p + p { margin-top: 1.2rem; }
  .about__text {     
    display: inline-block;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: .10em;
    color: #4a5568; 
  }
  
  .stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .stat {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(46, 52, 64, .05);
    transition: border-color .2s ease, transform .2s ease;
  }
  .stat:hover { border-color: #D97706; box-shadow: 0 8px 22px rgba(217, 119, 6, .18); transform: translateY(-2px); }
  .stat__num {
    display: block;
    font-family: var(--font-head);
    letter-spacing: 0;
    font-weight: 600;
    font-size: 2.1rem;
    color: #D97706;
  }
  .stat__desc { font-size: .88rem; color: #4b5563; }
  
  /* ===== Карточки ===== */
  .cards { display: grid; gap: 1.2rem; }
  .cards--3 { grid-template-columns: repeat(3, 1fr); }
  
  .card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.8rem;
    box-shadow: 0 2px 10px rgba(46, 52, 64, .05);
    transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
  }
  .card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(46, 52, 64, .09);
  }
  .card h3 {
    font-family: var(--font-head);
    letter-spacing: 0;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: .7rem;
  }
  .card p { color: #4b5563; font-size: .93rem; }
  .card__icon { font-size: 1.8rem; display: block; margin-bottom: .9rem; }
  
  .card--link .card__more {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 600;
    font-size: .88rem;
    color: var(--accent);
  }
  .services__list { margin-top: 1.2rem; }
  
  .card--news { display: flex; flex-direction: column; gap: .5rem; }
  .card__date {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent-2);
  }
  
  /* ===== Текущий проект ===== */
  .project__panel {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 2.5rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) + 6px);
    padding: 2.6rem;
    box-shadow: 0 4px 20px rgba(46, 52, 64, .06);
  }
  .project__info h3 {
    font-family: var(--font-head);
    letter-spacing: 0;
    font-size: 1.25rem;
    line-height: 1.35;
    margin-bottom: 1rem;
  }
  .project__info > p { color: #4b5563; font-size: .95rem; }
  .project__list { margin: 1.2rem 0 1rem; display: grid; gap: .45rem; }
  .project__list li {
    padding-left: 1.4rem;
    position: relative;
    font-size: .93rem;
  }
  .project__list li::before {
    content: "";
    position: absolute;
    left: 0; top: .55em;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--highlight);
  }
  .project__meta {
    font-size: .85rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 1.4rem;
  }
  
  /* Декоративная «анимация реактора» */
  .project__visual { display: grid; place-items: center; }
  .reactor {
    position: relative;
    width: 230px; height: 230px;
  }
  .reactor span {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(74,124,155,.5);
    border-radius: 50%;
    animation: spin 14s linear infinite;
  }
  .reactor span:nth-child(2) { transform: rotate(60deg); animation-duration: 18s; border-color: rgba(168,118,62,.4); }
  .reactor span:nth-child(3) { transform: rotate(120deg); animation-duration: 22s; }
  .reactor i {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-style: normal;
    font-family: var(--font-head);
    letter-spacing: 0;
    font-size: .72rem;
    letter-spacing: .12em;
    color: var(--muted);
    text-align: center;
  }
  @keyframes spin { to { transform: rotate(360deg); } }
  
  /* ===== Поставки ===== */
  .supply__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2.5rem;
  }
  .supply__col h3 {
    font-family: var(--font-head);
    letter-spacing: 0;
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
  }
  .chips { display: flex; flex-wrap: wrap; gap: .6rem; }
  .chips li {
    border: 1px solid var(--line);
    background: var(--card);
    border-radius: var(--btn-radius);
    padding: .5rem 1rem;
    font-size: .85rem;
    color: #4b5563;
    transition: border-color .2s ease, color .2s ease, transform .2s ease;
  }
  .chips li:hover { border-color: var(--accent-2); color: var(--text); transform: translateY(-2px); }
  .supply__btn { margin-top: 1.6rem; }
  
  /* ===== CTA / Контакты ===== */
  .cta__panel {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 3rem;
    background: linear-gradient(135deg, rgba(74,124,155,.10), rgba(168,118,62,.05)),
                var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) + 8px);
    padding: 3rem;
  }
  .contacts { margin-top: 2rem; display: grid; gap: 1rem; }
  .contacts li { display: flex; gap: 1rem; font-size: .95rem; }
  .contacts span {
    min-width: 90px;
    color: var(--muted);
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding-top: .2em;
  }
  .contacts a:hover { color: var(--accent); }
  
  .form { display: grid; gap: 1rem; }
  .form label {
    display: grid;
    gap: .4rem;
    font-size: .82rem;
    font-weight: 600;
    color: var(--muted);
  }
  .form input, .form textarea {
    font: inherit;
    color: var(--text);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: .8rem 1rem;
    outline: none;
    resize: vertical;
    transition: border-color .2s ease;
  }
  .form input:focus, .form textarea:focus { border-color: var(--highlight); }
  .form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .form__hint { font-size: .78rem; color: var(--muted); margin-top: -.4rem; }
  .form__hint--error { color: var(--accent-2); font-weight: 600; }
  .form__submit { justify-self: start; }
  .form__note { font-size: .75rem; color: var(--muted); }
  .form__ok {
    font-family: var(--font-head);
    letter-spacing: 0;
    font-size: 1rem;
    color: var(--accent);
  }
  .form__ok--success {
    color: #166534;
    background: rgba(22, 101, 52, .08);
    border: 1px solid rgba(22, 101, 52, .25);
    border-radius: var(--btn-radius);
    padding: .9rem 1.1rem;
  }
  
  /* ===== Тост-уведомление ===== */
  .toast {
    position: fixed;
    left: 50%;
    bottom: 2rem;
    transform: translate(-50%, 120%);
    z-index: 300;
    display: flex;
    align-items: center;
    gap: .7rem;
    background: #14532d;
    color: #fff;
    font-weight: 600;
    font-size: .95rem;
    padding: 1rem 1.6rem;
    border-radius: var(--btn-radius);
    box-shadow: 0 16px 40px rgba(20, 83, 45, .35);
    opacity: 0;
    transition: transform .4s ease, opacity .4s ease;
    pointer-events: none;
    max-width: 92%;
    text-align: center;
  }
  .toast--show {
    transform: translate(-50%, 0);
    opacity: 1;
  }
  
  /* ===== Прочие layout-классы ===== */
  .hero__inner { position: relative; z-index: 2; }
  .cta__left { align-self: center; }
  
  /* ===== Футер ===== */
  .footer {
    border-top: 1px solid var(--line);
    padding: 2.5rem 0;
  }
  .footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
  }
  .footer__brand p { margin-top: .5rem; font-size: .8rem; color: var(--muted); }
  .footer__nav { display: flex; flex-wrap: wrap; gap: 1.4rem; }
  .footer__nav a { font-size: .85rem; color: var(--muted); }
  .footer__nav a:hover { color: var(--text); }
  .footer__copy { font-size: .8rem; color: var(--muted); }
  
  /* ===== Адаптивность ===== */
  @media (max-width: 980px) {
    .about__grid, .project__panel, .supply__grid, .cta__panel {
      grid-template-columns: 1fr;
    }
    .cards--3 { grid-template-columns: 1fr 1fr; }
    .projects__grid { grid-template-columns: 1fr 1fr; }
    .header__phone { display: none; }
  }
  
  @media (max-width: 680px) {
    .burger { display: flex; }
    .nav {
      position: fixed;
      inset: 64px 0 auto 0;
      flex-direction: column;
      gap: 0;
      background: var(--bg-soft);
      border-bottom: 1px solid var(--line);
      padding: 1rem 4%;
      transform: translateY(-130%);
      transition: transform .3s ease;
    }
    .nav--open { transform: translateY(0); }
    .nav a { padding: .8rem 0; border-bottom: 1px solid var(--line); }
    .nav a:last-child { border-bottom: 0; }
  
    .section { padding: 4rem 0; }
    .cards--3 { grid-template-columns: 1fr; }
    .projects__grid { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr 1fr; }
    .project__panel, .cta__panel { padding: 1.6rem; }
    .hero { padding-top: 7rem; }
  }
  
  /* ============================================================
     Карточки проектов — аккордеон (без модального окна)
     ============================================================ */
  
  .projects__grid {
    grid-template-columns: repeat(4, 1fr);
    align-items: start; /* карточки не растягиваются под соседей */
  }
  
  .card--project {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding: 0;
    overflow: hidden;
  }
  .card--project h3,
  .card--project p,
  .card--project .card__date,
  .card--project .card__more,
  .card--project .project-details {
    padding-inline: 0.9rem; /* уменьшенный отступ */
  }
  .card--project h3 { margin-top: .9rem; }
  .card--project p { flex-grow: 1; }
  .card--project .card__more {
    margin-top: .6rem;
    margin-bottom: .8rem;
    background: none;
    border: none;
    text-align: left;
    font-weight: 600;
    font-size: .88rem;
    color: var(--accent);
    cursor: pointer;
    padding: 0;
    padding-inline: 0.9rem;
    width: 100%;
  }
  .card--project .card__more:hover {
    color: var(--accent-2);
  }
  
  .card__photo-wrap {
    width: 100%;
    height: 170px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background: var(--bg-soft);
  }
  .card__photo-wrap--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: .85rem;
  }
  .card__photo-wrap--empty::before {
    content: "Фото станции";
  }
  .card__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
  }
  .card--project:hover .card__photo { transform: scale(1.04); }
  
  /* ===== Раскрывающиеся детали проекта ===== */
  .project-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height .5s ease, padding .3s ease;
    padding-top: 0;
    padding-bottom: 0;
    border-top: 1px solid transparent;
  }
  .project-details--open {
    max-height: 600px;
    padding-top: .8rem;
    padding-bottom: 1.2rem;
    border-top: 1px solid var(--line);
  }
  .project-details__text {
    color: #4b5563;
    font-size: .9rem;
    margin-bottom: .8rem;
  }
  
  /* ===== Динамика: появление блоков при прокрутке ===== */
  .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .6s ease, transform .6s ease;
  }
  .reveal--visible {
    opacity: 1;
    transform: translateY(0);
  }
  .card--project:nth-child(2) { transition-delay: .1s; }
  .card--project:nth-child(3) { transition-delay: .2s; }
  .card--project:nth-child(4) { transition-delay: .3s; }
  .cards--3 .card:nth-child(2) { transition-delay: .1s; }
  .cards--3 .card:nth-child(3) { transition-delay: .2s; }
  .stats .stat:nth-child(2) { transition-delay: .1s; }
  .stats .stat:nth-child(3) { transition-delay: .2s; }
  .stats .stat:nth-child(4) { transition-delay: .3s; }
  
  @media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
  }
