:root {
  --blue: #3a5795;
  --blue-dark: #2c4475;
  --red: #b33a25;
  --green: #160;
  --bg: #e9eaed;
  --card: #fff;
  --text: #404040;
  --muted: #666;
  --line: #dfe0e4;
  --radius: 4px;
  --container: 1080px;
  --font: "Open Sans", Arial, sans-serif;
  --font-head: "Roboto Condensed", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.65 var(--font); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); }
a:hover { color: var(--red); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.25; margin: 0 0 .5em; }
p { margin: 0 0 .9em; }
ul { margin: 0; padding-left: 1.2em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 12px; }
.grid { display: grid; gap: 20px; }
.grid > * { min-width: 0; }
.btn { display: inline-block; padding: 10px 22px; background: var(--red); color: #fff; font-family: var(--font-head); font-size: 1.05rem; text-decoration: none; border-radius: var(--radius); }
.btn:hover { background: #9a3220; color: #fff; }

.site-header { background: #fff; }
.site-header__brand { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.brand img { width: 393px; }
.site-header__hotline { margin: 0; font-family: var(--font-head); font-size: 1.2rem; color: var(--green); }
.site-header__hotline a { color: var(--red); text-decoration: none; }
.navbar { background: var(--blue); }
.navbar__inner { position: relative; }
.primary-nav ul { display: flex; list-style: none; margin: 0; padding: 0; }
.primary-nav a { display: block; padding: 0 18px; line-height: 50px; color: #fff; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .2px; text-decoration: none; }
.primary-nav a:hover { background: var(--blue-dark); color: #fff; }
.nav-toggle { display: none; }

.hero { display: grid; grid-template-columns: 735fr 345fr; gap: 20px; margin-top: 20px; }
.hero > * { min-width: 0; }
.slider { position: relative; background: #fff; border-radius: var(--radius); overflow: hidden; }
.slider__track { list-style: none; margin: 0; padding: 0; }
.slider__slide { display: none; }
.slider__slide.is-active { display: block; }
.slider__slide img { width: 100%; aspect-ratio: 735 / 350; object-fit: contain; background: #fff; }
.slider__btn { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(58, 87, 149, .85); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.slider__btn:hover { background: var(--red); }
.slider__btn--prev { left: 10px; }
.slider__btn--next { right: 10px; }
.slider__toggle { position: absolute; right: 10px; bottom: 10px; padding: 6px 14px; border: 0; border-radius: var(--radius); background: rgba(58, 87, 149, .9); color: #fff; font: 700 .9rem/1.2 var(--font-head); cursor: pointer; }
.slider__toggle:hover { background: var(--red); }
.slider__btn:focus-visible, .slider__toggle:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.hero__text { background: var(--card); border-radius: var(--radius); padding: 20px; border-top: 4px solid var(--red); }
.hero__text h1 { font-size: 1.45rem; color: var(--blue); }

.section { margin-top: 28px; }
.section__title { background: var(--blue); color: #fff; font-size: 1.1rem; text-transform: uppercase; padding: 10px 14px; margin: 0 0 16px; border-radius: var(--radius); }
.section--text { background: var(--card); padding: 0 0 20px; border-radius: var(--radius); overflow: hidden; }
.section--text .section__title { border-radius: 0; }
.section--text > :not(.section__title) { margin-left: 20px; margin-right: 20px; }

.products { display: grid; gap: 20px; }
.product { display: grid; grid-template-columns: 380px 1fr; gap: 20px; background: var(--card); padding: 20px; border-radius: var(--radius); }
.product > * { min-width: 0; }
.product:nth-child(even) { grid-template-columns: 1fr 380px; }
.product:nth-child(even) .product__gallery { order: 2; }
.product__gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(2, 1fr); align-content: start; }
.product__gallery li { min-width: 0; }
.product__gallery li:first-child, .product__gallery--1 li, .product__gallery--2 li { grid-column: 1 / -1; }
.product__body h3 { font-size: 1.3rem; color: var(--blue); }
.product__meta { font-size: .85rem; color: var(--muted); }

.cards { grid-template-columns: repeat(5, 1fr); }
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card h3 { font-size: 1rem; color: var(--blue); margin: 12px 12px 6px; }
.card p { font-size: .9rem; margin: 0 12px 14px; }

.policy { display: grid; grid-template-columns: 240px 1fr; margin: 0; border: 1px solid var(--line); }
.policy dt, .policy dd { margin: 0; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.policy dt { font-weight: 600; background: #f5f6f8; }
.policy dt:last-of-type, .policy dd:last-of-type { border-bottom: 0; }

.lead { font-style: italic; color: var(--muted); }
.plans { grid-template-columns: repeat(2, 1fr); margin-bottom: 20px; }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.plan h3 { font-size: 1.1rem; color: var(--blue); }
.plan li { margin-bottom: .4em; }
.table-wrap { overflow-x: auto; }
.rates { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; text-align: right; }
.rates caption { text-align: left; font-weight: 600; padding-bottom: 8px; }
.rates th, .rates td { border: 1px solid var(--line); padding: 6px 10px; }
.rates thead th { background: var(--blue); color: #fff; text-align: center; }
.rates tbody th { background: #f5f6f8; }
.rates tbody tr:nth-child(even) td { background: #fafafa; }

.contact { font-style: normal; }
.contact a { color: var(--red); font-weight: 600; }

.site-footer { margin-top: 28px; background: var(--blue); color: #e6e9f2; padding: 20px 0; text-align: center; }
.site-footer p { margin: 0 0 .4em; }
.site-footer a { color: #fff; }
.site-footer__name { font-family: var(--font-head); font-size: 1.15rem; }

@media (max-width: 1023px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .hero { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .site-header__brand { flex-direction: column; text-align: center; }
  .brand img { width: 280px; }
  .nav-toggle { display: block; background: none; border: 0; color: #fff; font: 700 1rem/50px var(--font-head); text-transform: uppercase; padding: 0 0 0 30px; cursor: pointer; position: relative; }
  .nav-toggle::before { content: ""; position: absolute; left: 0; top: 18px; width: 20px; height: 14px; background: linear-gradient(#fff 0 2px, transparent 2px 6px, #fff 6px 8px, transparent 8px 12px, #fff 12px 14px); }
  .primary-nav { display: none; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; padding-bottom: 8px; }
  .primary-nav a { line-height: 44px; padding: 0 8px; border-top: 1px solid rgba(255, 255, 255, .15); }
  .product, .product:nth-child(even) { grid-template-columns: 1fr; padding: 14px; }
  .product:nth-child(even) .product__gallery { order: 0; }
  .cards, .plans { grid-template-columns: 1fr 1fr; }
  .policy { grid-template-columns: 1fr; }
  .policy dt { border-bottom: 0; }
  .section--text > :not(.section__title) { margin-left: 14px; margin-right: 14px; }
}

@media (max-width: 480px) {
  .cards, .plans { grid-template-columns: 1fr; }
}
