:root{
  --bg:#ffffff;
  --text:#0f172a;
  --muted:#475569;
  --line:#e2e8f0;
  --accent:#ef4444;
  --accent2:#f59e0b;
  --dark:#0b0f1a;
  --card:#ffffff;
  --shadow:0 6px 20px rgba(2,6,23,.08);
  --radius:16px;
  --container:1100px;
}

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial;
  color:var(--text);
  background:var(--bg);
}

.container{
  max-width:var(--container);
  margin:0 auto;
  padding:0 20px;
}

/* Верхняя узкая полоска */
.topbar{
  height:6px;
  background:linear-gradient(90deg,#000,#9ca3af,#000);
}

/* ============================= */
/*            ХЕДЕР              */
/* ============================= */

.header{
  position:sticky;
  top:0;
  z-index:20;
  background:rgba(255,255,255,.92);
  backdrop-filter:saturate(180%) blur(10px);
  border-bottom:1px solid var(--line);
}

.header-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:72px;              /* было 64px */
  background-color:#f1f1f1;
}

.logo img{
  height:56px;              /* чуть больше, чем было 50px */
  width:auto;
}

/* Навигация */
nav ul{
  display:none;
  gap:24px;
  list-style:none;
  margin:0;
  padding:0;
}

nav a{
  color:var(--text);
  text-decoration:none;
  font-weight:600;
}

nav a:hover{
  color:var(--accent);
}

/* Переключатель языков */
.lang{
  display:flex;
  align-items:center;
  gap:0;
  border:1px solid #cbd5e1;
  border-radius:12px;
  overflow:hidden;
}

/* и span, и a выглядят одинаково */
.lang span,
.lang a{
  padding:6px 10px;
  font-weight:700;
  text-decoration:none;
  color:var(--text);
  display:block;
}

/* активный язык */
.lang .active{
  background:#0f172a;
  color:#fff;
}

/* ховер по ссылке языка */
.lang a:hover{
  background:#e5e7eb;
}

/* CTA */
.cta{
  display:none;
  padding:10px 14px;
  background:#dc2626;
  color:#fff;
  border-radius:16px;
  text-decoration:none;
  font-weight:700;
}

/* Бургер */
.burger{
  display:inline-flex;
  width:38px;
  height:38px;
  align-items:center;
  justify-content:center;
  border:1px solid #cbd5e1;
  border-radius:10px;
  background:#fff;
}

.burger span{
  width:18px;
  height:2px;
  background:#0f172a;
  position:relative;
}

.burger span::before,
.burger span::after{
  content:"";
  position:absolute;
  left:0;
  width:18px;
  height:2px;
  background:#0f172a;
}

.burger span::before{ top:-6px; }
.burger span::after{ top:6px; }

/* Иногда используем отдельный класс для картинок масел */
.ph_img{
  width:170px;
}

/* ============================= */
/*  Мобильное меню справа        */
/* ============================= */

@media (max-width: 991.98px){

  /* затемнение */
  header nav{
    position:fixed;
    inset:64px 0 0 0;
    display:none;
    background:rgba(15,23,42,0.55);
    backdrop-filter:blur(8px);
    z-index:15;
  }

  header nav.open{
    display:block;
  }

  /* белая панель справа */
  header nav ul{
    position:absolute;
    right:0;
    top:0;
    width:300px;
    background:#ffffff;
    border-bottom-left-radius:16px;
    box-shadow:-4px 0 20px rgba(0,0,0,0.15);
    display:flex;
    flex-direction:column;
    gap:0;
    padding:20px 20px 28px;
  }

  header nav ul li + li{
    border-top:1px solid var(--line);
  }

  header nav a{
    display:block;
    padding:14px 0;
    font-size:16px;
  }
}

/* Десктоп меню */
@media(min-width:768px){
  nav ul{display:flex;}
  .cta{display:inline-flex;}
  .burger{display:none;}
}

/* ============================= */
/*            HERO               */
/* ============================= */

.hero{
  position:relative;
  background:#020617;
  color:#fff;
  overflow:hidden;
}

.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(60% 60% at 50% 0%, rgba(255,0,0,.35), transparent 60%),
    radial-gradient(60% 60% at 50% 100%, rgba(255,215,0,.35), transparent 60%);
  opacity:.5;
}

.hero .wrap{
  position:relative;
  display:grid;
  gap:28px;
  padding:80px 0;

  /* Картинка + затемнение + плавное затемнение по бокам */
  background-image:
    /* затемнение по бокам под цвет фона hero */
    linear-gradient(
      90deg,
      #020617 0%,
      rgba(2, 6, 23, 0) 20%,
      rgba(2, 6, 23, 0) 80%,
      #020617 100%
    ),
    /* общий затемняющий слой поверх картинки */
    linear-gradient(
      rgba(2, 6, 23, 0.84),
      rgba(2, 6, 23, 0.84)
    ),
    /* сама фотографія */
    url(/img/jpg/intro.jpg);

  background-size: 100% 100%, 100% 100%, cover;
  background-position: center;
  background-repeat: no-repeat;
}

@media(min-width:992px){
  .hero .wrap{
    grid-template-columns:1.2fr 1fr;
    align-items:center;
  }
}

.hero h1{
  font-size:42px;
  line-height:1.15;
  margin:0 0 14px;
  font-weight:900;
  padding-left: 20px;
}

.hero p{
  color:#cbd5e1;
  font-size:18px;
  max-width:620px;
  padding-left: 20px;
}

.btn-outline{
  display:inline-block;
  padding:12px 18px;
  border:1px solid #334155;
  border-radius:16px;
  color:#fff;
  text-decoration:none;
  font-weight:700;
   margin-left: 20px;
}

.mock{
  border:1px solid #334155;
  background:linear-gradient(135deg,#1f2937,#334155);
  height:0;
  padding-bottom:50%;
  border-radius:24px;
  display:grid;
  place-items:center;
  color:#cbd5e1;
  box-shadow:var(--shadow);
}

/* ============================= */
/*         Общие секции          */
/* ============================= */

.section{
  padding:68px 0;
}

.section.alt{
  background:#f8fafc;
}

h2{
  font-size:32px;
  margin:0 0 8px;
  text-align:center;
}

.lead{
  color:var(--muted);
  text-align:center;
  max-width:720px;
  margin:0 auto 8px;
}

.grid-two{
  display:grid;
  gap:28px;
}

@media(min-width:992px){
  .grid-two{
    grid-template-columns:1.1fr 1fr;
  }
}

/* ============================= */
/*           ПРО НАС             */
/* ============================= */

.about-text{
  margin:0 0 24px;      /* текст тянется на всю ширину контейнера */
  text-align:left;
}

.about-text p{
  margin:0 0 10px;
  font-size:14px;
  color:var(--muted);
}

/* Карточки преимуществ / преимуществ бренда */
.cards{
  display:grid;
  gap:18px;
  margin-top:24px;
}

/* 3 в ряд на десктопе */
@media (min-width: 992px){
  #about .cards{
    grid-template-columns:repeat(3,1fr);
  }
}

/* 2 в ряд на планшетах */
@media (min-width: 576px) and (max-width: 991.98px){
  #about .cards{
    grid-template-columns:repeat(2,1fr);
  }
}

/* 1 в колонку на мобилках */
@media (max-width: 575.98px){
  #about .cards{
    grid-template-columns:1fr;
  }
}

.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:16px;
  padding:20px;
  box-shadow:var(--shadow);
}

.card img{
  width:100%;
  height:auto;
  border-radius:12px;
  display:block;
  margin-bottom:10px;
}

.card h3{
  margin:4px 0 6px;
  font-size:18px;
}

/* ============================= */
/*         ПРОДУКТИ             */
/* ============================= */

.products{
  display:flex;
  flex-direction:column;
  gap:32px;
}

.product-row{
  display:flex;
  align-items:flex-start;
  gap:28px;
}

/* Шахматка: у чётных блоков картинка справа */
.product-row:nth-child(even){
  flex-direction:row-reverse;
}

/* визуал продукта */
.product-media{
  flex:0 0 33%;
  max-width:320px;
}

.product-media-frame{
  border-radius:18px;
  padding:12px;
  background:#e5e7eb;     /* спокойный серый фон */
  border:none;
}

.product-media img{
  width:100%;
  height:auto;
  display:block;
}

/* текстовая часть */
.product-info{
  flex:1;
}

.product-info h3{
  margin:0 0 10px;
  font-size:20px;
}

.product-info p{
  margin:0 0 8px;
  font-size:14px;
  color:var(--muted);
}

/* мобильный вид продуктов */
@media (max-width:767.98px){
  .product-row,
  .product-row:nth-child(even){
    flex-direction:column;
    align-items:stretch;      /* текст пусть тянется по ширине */
  }

  .product-media{
    max-width:260px;
    margin:0 auto 12px;       /* центрируем блок с картинкой */
  }
}


/* ============================= */
/*            ІСТОРІЯ            */
/* ============================= */

.timeline{
  position:relative;
  margin-top:18px;
  padding-left:22px;
}

/* вертикальну лінію прибираємо */
.timeline::before{
  display:none;
}

.timeline-cards li{
  position:relative;
  margin:18px 0;
  list-style:none;
  padding-left:4px;
}

.timeline-cards .dot{
  position:absolute;
  left:-2px;
  top:10px;
  width:16px;
  height:16px;
  border-radius:999px;
  background:linear-gradient(to bottom, #ef4444, #f59e0b);
  border:2px solid #ffffff;
  box-shadow:0 0 0 2px rgba(148,163,184,.5);
}

.timeline-cards .entry{
  background:#ffffff;
  border:1px solid var(--line);
  border-radius:16px;
  padding:14px 18px;
  box-shadow:var(--shadow);
}

.timeline-cards .entry .year{
  font-weight:700;
  margin-bottom:4px;
}

.timeline-cards .entry p{
  margin:0;
  font-size:14px;
  color:var(--muted);
}

/* Галерея старых канистр */
.gallery{
  display:grid;
  gap:10px;
  grid-template-columns:repeat(2,1fr);
}

@media(min-width:768px){
  .gallery{
    grid-template-columns:repeat(6,1fr);
  }
}

.gallery .ph{
  background:#f1f5f9;
  border:1px solid var(--line);
  border-radius:12px;
  height:110px;
  display:grid;
  place-items:center;
  color:#94a3b8;
  font-size:12px;
}

/* ============================= */
/*      Наше виробництво        */
/* ============================= */

.factory-text{
  margin:16px 0 20px;
}

.factory-text p{
  margin:0 0 10px;
  font-size:14px;
  color:var(--muted);
}

/* 5 квадратних фото виробництва */
.factory-photos{
  display:grid;
  gap:10px;
  margin-top:12px;
  grid-template-columns:repeat(2,1fr);
}

@media (min-width: 576px){
  .factory-photos{
    grid-template-columns:repeat(3,1fr);
  }
}

@media (min-width: 992px){
  .factory-photos{
    grid-template-columns:repeat(5,1fr);
  }
}


.factory-photo{
  position:relative;
  border-radius:12px;
  overflow:hidden;
}

.factory-photo::before{
  content:"";
  display:block;
  padding-bottom:100%;   /* квадрат */
}

.factory-photo img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* заголовок перед картою */
.factory-map-title{
  margin:32px 0 18px;   /* больше интервал сверху и снизу */
  font-size:22px;       /* чуть крупнее */
  font-weight:700;
  text-align:center;    /* по центру */
}

/* ============================= */
/*              КАРТА            */
/* ============================= */

.mapbox{
  border:1px solid var(--line);
  border-radius:16px;
  height:420px;
  display:grid;
  place-items:center;
  background:#fff;
  box-shadow:var(--shadow);
}

/* ============================= */
/*              ФОРМА            */
/* ============================= */

.form{
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  padding:20px;
  box-shadow:var(--shadow);
}

.form label{
  display:block;
  font-weight:600;
  font-size:14px;
}

.form input,
.form textarea{
  width:100%;
  margin-top:6px;
  padding:10px 12px;
  border:1px solid #cbd5e1;
  border-radius:12px;
  font:inherit;
}

.form textarea{
  min-height:120px;
}


/* ============================= */
/*            Контакти           */
/* ============================= */

.contacts-panel{
  position:relative;
  background:#ffffff;
  border:1px solid var(--line);
  border-radius:20px;
  padding:24px;
  box-shadow:var(--shadow);
  margin-top:24px;
}

@media (max-width: 767.98px){
  .contacts-panel{
    padding:18px;
  }
}

.contacts-list{
  list-style:none;
  padding:0;
  margin:0;
}

.contacts-list li{
  margin-bottom:10px;
  font-size:14px;
  color:var(--muted);
}

.contacts-label{
  display:inline-block;
  font-weight:600;
  color:var(--text);
  margin-right:4px;
}
/* Ссылки в блоці контактів: чорний текст + підкреслення */
.contacts-list a{
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Ховер — просто чуть толще подчёркивание, без смены цвета */
.contacts-list a:hover{
  color: var(--text);
  text-decoration-thickness: 2px;
}






/* ============================= */
/*              ФУТЕР            */
/* ============================= */

.footer{
  background:#0b1220;
  color:#cbd5e1;
}

.footer-row{
  display:flex;
  gap:18px;
  align-items:center;
  justify-content:space-between;
  padding:28px 0;
  flex-wrap:wrap;
}

.footer small{
  color:#94a3b8;
}

@media (max-width: 767.98px){
  .footer-row{
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;   /* чтобы адрес красиво центрировался */
    gap:8px;
  }
}

.gallery{
  display:grid;
  gap:10px;
  grid-template-columns:repeat(2,1fr);
}

@media(min-width:768px){
  .gallery{
    grid-template-columns:repeat(6,1fr);
  }
}

.gallery .ph{
  background:#f1f5f9;
  border:1px solid var(--line);
  border-radius:12px;
  height:150px;              /* можно 120–150 по вкусу */
  padding:6px;               /* небольшой внутренний отступ */
  display:grid;
  place-items:center;
}

/* Картинки внутри ячейки */
.gallery .ph img{
  max-width:80%;
  max-height:110px;
  object-fit:contain;        /* ужимает, не обрезая */
  display:block;
}

