:root {
  --wine: #8e2426;
  --wine-dark: #68191b;
  --ink: #252525;
  --line: #e4e4e4;
}

html { scroll-behavior: smooth; overflow-x: hidden; }
body { overflow-x: hidden; }
img, iframe { max-width: 100%; }
.wrapper { overflow: hidden; }
a { transition: color .2s ease, background .2s ease, transform .2s ease; }

/* Added news and exhibition sections. The original Vertikal styles for the
   header, price, information, about and contacts blocks remain untouched. */
.news-section, .expo-section { padding: 60px 0; }
.news-section { background: #f6f6f6; }
.expo-section { background: #fff; }
.content-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
}
.content-head .title { margin: 0; }
.content-link { color: var(--wine); font-weight: 700; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.content-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 250px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
}
.content-card:hover { transform: translateY(-4px); text-decoration: none; }
.content-card .meta, .content-card time { color: var(--wine); font-size: 13px; font-weight: 700; }
.content-card h3 { margin: 16px 0 12px; font-size: 21px; line-height: 1.25; }
.content-card p { color: #666; line-height: 1.55; }
.read-more { margin-top: auto; color: var(--wine); font-weight: 700; }

.page-main { padding: 70px 0 100px; }
.page-main h1 { margin: 0 0 35px; font-size: clamp(38px, 6vw, 70px); }
.archive-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.archive-grid > article {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 230px;
  padding: 26px;
  border: 1px solid var(--line);
  background: #fff;
}
.archive-grid > article time { color: var(--wine); font-size: 13px; font-weight: 700; }
.archive-grid > article h2 { margin: 16px 0; font-size: 21px; line-height: 1.25; }
.archive-grid > article .read-more { margin-top: auto; }
.article { max-width: 880px; }
.article h1 { font-size: clamp(34px, 6vw, 62px); line-height: 1.08; }
.article-content, .article-body { font-size: 18px; line-height: 1.75; }
.article-content img, .article-body img { max-width: 100%; height: auto; }
.source-note { margin-top: 35px; padding: 20px; border-left: 4px solid var(--wine); background: #f7f7f7; }
.source-note a { color: var(--wine); overflow-wrap: anywhere; }
.back-link { display: inline-block; margin-bottom: 28px; color: var(--wine); font-weight: 700; }
.empty-state { padding: 38px; border: 1px dashed #bbb; color: #666; }

.form input, .form textarea { border-radius: 8px; }
.link-policy a { color: #166bb3 !important; text-decoration: underline; }
.form__notice { display: none; padding: 13px 16px; margin-bottom: 15px; background: #e9f7ef; color: #176b3a; }
.form__notice:target { display: block; }
.rates-source { margin: 10px 0 0; color: #ddd; font-size: 12px; }

/* Exchange-rate and LME panels */
.information__item { min-width: 0; }
.information__itemContent { min-width: 0; overflow-x: auto; scrollbar-color: #fff rgba(255,255,255,.18); }
.information__itemContent .tablica_valut { table-layout: fixed; }
.information__itemContent .tablica_valut th,
.information__itemContent .tablica_valut td { overflow-wrap: anywhere; }
.lme-table th:nth-child(1) { width: 42%; }
.lme-table th:nth-child(2) { width: 35%; }
.lme-table th:nth-child(3) { width: 23%; }
.lme-table th:nth-child(n+2),
.lme-table td:nth-child(n+2) { text-align: right; }
.lme-table td:first-child { font-weight: 700; }
.lme-change { white-space: nowrap; font-weight: 700; }
.lme-change--up { color: #65df78; }
.lme-change--down { color: #ff7777; }
.lme-change--same { color: #70c8f1; }

/* Addresses and receiving sites */
.contacts__map { min-width: 0; min-height: 400px; overflow: hidden; border: 2px solid var(--wine); background: #e5e5e5; }
.contacts__map iframe { display: block; min-height: 400px; border: 0; }
.director-line { display: block; margin-top: 12px; }
.legal-address { margin-top: 40px; }
.legal-address h3,
.location-card h3 { margin: 0 0 10px; color: #555; font-size: 24px; line-height: 1.25; }
.legal-address p { margin: 0 0 20px; color: #555; }
.locations { padding: 60px 0; background: #fff; }
.locations .title { margin-bottom: 30px; }
.locations__grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; align-items: stretch; }
.location-card { position: relative; display: grid; grid-template-columns: 72px minmax(0,1fr); min-width: 0; padding: 28px; border: 1px solid #d4d4d4; background: #f7f7f7; }
.location-card__number { color: var(--wine); font-size: 34px; font-weight: 700; line-height: 1; }
.location-card__body { min-width: 0; }
.location-card address { margin: 0; color: #555; font-size: 17px; font-style: normal; line-height: 1.55; }
.photo-slider { position: relative; min-width: 0; margin-top: 22px; }
.photo-slider__viewport { min-width: 0; overflow: hidden; }
.photo-slider__track { display: flex; transition: transform .38s ease; will-change: transform; }
.photo-slider__slide { flex: 0 0 100%; min-width: 0; margin: 0; }
.photo-slider__slide img { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; object-fit: cover; background: #ddd; }
.photo-slider__arrow { position: absolute; z-index: 3; top: 50%; display: flex; align-items: center; justify-content: center; width: 42px; height: 54px; padding: 0; border: 0; border-radius: 0; background: rgba(142,36,38,.9); color: #fff; font-size: 34px; line-height: 1; cursor: pointer; transform: translateY(-50%); }
.photo-slider__arrow:hover { background: #6f1c1e; }
.photo-slider__arrow--prev { left: 0; }
.photo-slider__arrow--next { right: 0; }
.photo-slider__dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.photo-slider__dot { width: 10px; height: 10px; padding: 0; border: 1px solid var(--wine); border-radius: 50%; background: transparent; cursor: pointer; }
.photo-slider__dot.is-active { background: var(--wine); }

/* The legal-address gallery is a grid on desktop and becomes a slider on phones. */
.photo-slider--legal .photo-slider__viewport { overflow: visible; }
.photo-slider--legal .photo-slider__track { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.photo-slider--legal .photo-slider__slide { min-width: 0; }
.photo-slider--legal .photo-slider__slide img { aspect-ratio: 4 / 3; }
.photo-slider--legal .photo-slider__arrow,
.photo-slider--legal .photo-slider__dots { display: none; }

.footer-modern { padding: 35px 0; background: #282828; color: #fff; }
.footer-modern__inner { display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.footer-modern a { color: #fff; }
.footer-modern__links { display: flex; flex-wrap: wrap; gap: 20px; }

@media (max-width: 980px) {
  .card-grid, .archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .locations__grid { grid-template-columns: 1fr; }
  .photo-slider--legal .photo-slider__track { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 767px) {
  .price__accordion:not(.active) > .price__accordionContent {
    display: none;
  }
  .price__accordionHeader {
    position: relative;
    padding-right: 52px;
  }
  .price__accordionHeader::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 21px;
    width: 10px;
    height: 10px;
    border: solid #fff;
    border-width: 0 3px 3px 0;
    transform: translateY(-70%) rotate(45deg);
    transition: transform .2s ease;
    pointer-events: none;
  }
  .price__accordion.active > .price__accordionHeader::after {
    transform: translateY(-25%) rotate(225deg);
  }
  .price__accordionHeader:focus-visible {
    outline: 3px solid rgba(255,255,255,.85);
    outline-offset: -5px;
  }
}

@media (max-width: 700px) {
  .content-head, .footer-modern__inner { flex-direction: column; align-items: flex-start; }
  .card-grid, .archive-grid { grid-template-columns: 1fr; }
  .content-card { min-height: 220px; }
  .news-section, .expo-section { padding: 45px 0; }
  .page-main { padding: 45px 0 70px; }
  .footer-modern__links { flex-direction: column; gap: 10px; }
  .locations { padding: 45px 0; }
  .location-card { grid-template-columns: 52px minmax(0,1fr); padding: 22px 18px; }
  .location-card__number { font-size: 26px; }
  .photo-slider--legal .photo-slider__viewport { overflow: hidden; }
  .photo-slider--legal .photo-slider__track { display: flex; gap: 0; }
  .photo-slider--legal .photo-slider__slide { flex: 0 0 100%; }
  .photo-slider--legal .photo-slider__arrow { display: flex; }
  .photo-slider--legal .photo-slider__dots { display: flex; }
  .contacts__map,
  .contacts__map iframe { min-height: 320px; }

  /* Five source columns become one readable product card on a phone. */
  .price__accordionContent { overflow: visible; }
  .price__accordionContent table { display: block; width: 100%; min-width: 0; }
  .price__accordionContent thead { display: none; }
  .price__accordionContent tbody { display: block; }
  .price__accordionContent table tr {
    display: grid;
    grid-template-columns: 1fr;
    margin: 0 0 12px;
    border: 1px solid #d4d4d4;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
  }
  .price__accordionContent table tr td {
    display: grid;
    grid-template-columns: minmax(92px, 38%) 1fr;
    gap: 12px;
    width: auto;
    min-width: 0;
    padding: 9px 12px;
    border: 0;
    border-bottom: 1px solid #e4e4e4;
    font-size: 14px;
    overflow-wrap: anywhere;
  }
  .price__accordionContent table tr td:last-child { border-bottom: 0; }
  .price__accordionContent table tr td::before { color: #777; font-size: 12px; font-weight: 500; }
  .price__accordionContent table tr td:nth-child(1)::before { content: "Материал"; }
  .price__accordionContent table tr td:nth-child(2)::before { content: "Марка"; }
  .price__accordionContent table tr td:nth-child(3)::before { content: "Параметр"; }
  .price__accordionContent table tr td:nth-child(4)::before { content: "Стандарт / размер"; }
  .price__accordionContent table tr td:nth-child(5)::before { content: "Цена"; }
  .price__accordionContent table tr td b { font-size: 14px; }
}

@media (max-width: 420px) {
  .price__accordionContent table tr td { grid-template-columns: 1fr; gap: 3px; }
  .location-card { grid-template-columns: 1fr; gap: 10px; }
  .photo-slider__arrow { width: 38px; height: 48px; }
}

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