/* ============================================================
   SPEEDY GAS — Clean Light Theme, inspired by cohere.com
   White + warm cream palette · coral-orange accent · Inter
   ============================================================ */

/* ---- Design Tokens ---- */
:root {
  /* Backgrounds */
  --bg:          #FFFFFF;
  --bg-warm:     #F5F2EC;   /* warm cream — Cohere's off-white section bg */
  --bg-card:     #FFFFFF;
  --bg-surface:  #FAF9F7;   /* inputs, subtle fills */
  --bg-dark:     #111118;   /* footer & dark accent band */

  /* Borders */
  --border:      #E8E2D8;
  --border-mid:  #D4CCBf;
  --border-dark: rgba(0,0,0,0.08);

  /* Text */
  --text:        #1A1816;   /* near-black, warm */
  --text-muted:  #6B6460;   /* warm mid-gray */
  --text-faint:  #B5AFA6;   /* light placeholder */
  --text-on-dark:#F2F0EC;

  /* Accent — coral orange */
  --coral:       #EE6E3B;
  --coral-hi:    #F5955E;
  --coral-dk:    #D55826;
  --gradient:    linear-gradient(135deg, #EE6E3B 0%, #F5A06B 100%);
  --gradient-h:  linear-gradient(135deg, #D55826 0%, #EE8050 100%);

  /* Misc */
  --radius-sm:   6px;
  --radius:      12px;
  --radius-lg:   20px;
  --radius-pill: 100px;

  --shadow-sm:   0 1px 4px rgba(0,0,0,0.07), 0 2px 8px rgba(0,0,0,0.05);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.09), 0 2px 6px rgba(0,0,0,0.06);
  --shadow-lift: 0 12px 36px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.07);
  --shadow-glow: 0 8px 28px rgba(238,110,59,0.22);

  --t: 0.18s ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%; min-height: 100%;
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

ul, ol  { list-style: none; }
img     { max-width: 100%; height: auto; display: block; }
:focus          { outline: 2px solid var(--coral); outline-offset: 3px; }
h1:focus, h2:focus, h3:focus, h4:focus { outline: none; }

a       { color: var(--coral); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--coral-dk); }

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--text);
}

p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-muted);
  margin: 0 0 14px;
}

hr.light {
  border: none; height: 1px;
  background: var(--border);
  margin: 28px 0;
}

/* ---- Utilities ---- */
.clear    { clear: both; }
.center   { text-align: center; }
.hidden   { display: none; }
.f-left   { float: left; }
.relative { position: relative; }
img.responsive { max-width: 100%; }
.space-20px { height: 20px; display: block; }
.space-30px { height: 30px; display: block; }
.space-50px { height: 50px; display: block; }

/* Section backgrounds */
.whitebg     { background: var(--bg); }
.transparent { background: var(--bg-warm); }

.half {
  width: calc(50% - 20px);
  margin: 10px;
  float: left;
}

/* ---- Outer container ---- */
div.outer {
  width: 100%;
  max-width: 1200px;
  padding: 0 32px;
  margin: 0 auto;
  position: relative;
}
div.outer.p20 { padding-top: 80px; padding-bottom: 80px; }

div.outer h1 { font-size: 44px; margin-bottom: 20px; }
div.outer h2 { font-size: 32px; margin-bottom: 16px; }
div.outer h3 { font-size: 24px; margin-bottom: 12px; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
div.header {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 999;
  transition: box-shadow var(--t), background var(--t);
}

div.header.fly {
  background: rgba(255,255,255,0.96);
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
}

div.header a.logo        { float: left; padding: 14px 0; }
div.header a.logo img    { height: 52px; width: auto; }
div.header i.mobile-mbtn { display: none; cursor: pointer; color: var(--text); font-size: 22px; }

div.header ul.menu {
  float: right;
  display: flex;
  align-items: center;
  height: 80px;
  gap: 2px;
  width: auto;
  margin-top: 0;
}

div.header ul.menu li      { display: inline-flex; align-items: center; height: auto; }
div.header ul.menu li a {
  padding: 8px 14px;
  font-size: 14px; font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border-radius: var(--radius-pill);
  line-height: 1.5;
  transition: color var(--t), background var(--t);
}
div.header ul.menu li a:hover  { color: var(--text); background: rgba(0,0,0,0.04); }
div.header ul.menu li a.active { color: var(--coral); background: rgba(238,110,59,0.07); font-weight: 600; }

/* Last nav item = CTA pill button */
div.header ul.menu li:last-child { margin-left: 8px; }
div.header ul.menu li:last-child a {
  background: var(--text);
  color: #fff;
  padding: 9px 22px;
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--radius-pill);
  transition: background var(--t), transform var(--t);
}
div.header ul.menu li:last-child a:hover {
  background: var(--coral);
  transform: translateY(-1px);
}
div.header ul.menu li:last-child a.active {
  background: var(--coral);
  color: #fff;
}

div.header div.clear { clear: both; }

/* ============================================================
   SLIDER / HERO
   ============================================================ */
div.slide-box {
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  background: var(--bg-warm);
}

#home-slider { list-style: none; }
#home-slider li { display: none; position: relative; }
#home-slider li img {
  width: 100%; height: auto;
  object-fit: cover;
}

div.slide-box a.rslides_nav {
  width: 44px; height: 44px;
  line-height: 42px; text-align: center;
  background: rgba(255,255,255,0.88);
  border: 1px solid var(--border);
  color: var(--text);
  position: absolute; top: 50%; margin-top: -22px;
  z-index: 10;
  border-radius: 50%;
  display: none;
  box-shadow: var(--shadow-sm);
  transition: background var(--t), box-shadow var(--t);
}
div.slide-box a.rslides_nav.next { right: 24px; }
div.slide-box a.rslides_nav.prev { left:  24px; }
div.slide-box a.rslides_nav i    { display: block; margin-top: 9px; font-size: 22px; }
div.slide-box:hover a.rslides_nav { display: block; }
div.slide-box a.rslides_nav:hover {
  background: #fff;
  box-shadow: var(--shadow-md);
}

/* ============================================================
   HOME — 3 FEATURE BOXES
   ============================================================ */
div.home {
  background: var(--bg-warm);
  border-bottom: 1px solid var(--border);
}

div.houter {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 48px;
  padding-bottom: 48px;
  background: transparent;
}
div.houter .clear { display: none; }

div.houter div.third {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  width: auto; margin: 0; float: none;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t), transform var(--t), border-color var(--t);
}
div.houter div.third:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-4px);
  border-color: var(--border-mid);
}

div.houter div.third div.title {
  height: auto;
  padding: 0 0 20px 52px;
  color: var(--text);
  font-size: 17px; font-weight: 700;
  line-height: 1.4;
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 36px 36px;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
div.houter div.third div.title.nadzor   { background-image: url('/images/bg/b1icon.png'); }
div.houter div.third div.title.dostavka { background-image: url('/images/bg/b2icon.png'); }
div.houter div.third div.title.serviz   { background-image: url('/images/bg/b3icon.png'); }

div.houter div.third div.content {
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 15px; line-height: 1.7;
  min-height: auto;
}

/* ============================================================
   HOME PAGE CONTENT SECTION
   ============================================================ */
div.hpage h2 {
  font-size: 36px; font-weight: 800;
  color: var(--text);
  margin: 0 0 20px;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
div.hpage p   { color: var(--text-muted); font-size: 16px; line-height: 1.8; }
div.hpage a   { color: var(--coral); font-weight: 500; }
div.hpage a:hover { color: var(--coral-dk); }

div.hpage img.f-left {
  float: left;
  max-width: 250px;
  margin: 0 44px 24px 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

ul.home-list { padding: 4px 0 12px; }
ul.home-list li {
  position: relative;
  padding: 5px 0 5px 22px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
}
ul.home-list li::before {
  content: '';
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 7px; height: 7px;
  background: var(--gradient);
  border-radius: 50%;
}

/* Products section heading */
div.transparent div.outer > div > h2.center {
  font-size: 38px; font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}
div.transparent div.outer > div > p.center {
  color: var(--text-muted);
  font-size: 17px;
}

/* ============================================================
   BREADCRUMB (inner pages)
   ============================================================ */
div.breadcrumb {
  position: relative;
  background: url('/images/headline.png') center center / cover no-repeat;
  min-height: 220px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

div.breadcrumb .bc-overlay {
  position: absolute; inset: 0;
  background: rgba(10, 8, 6, 0.58);
  z-index: 1;
}

div.breadcrumb .bc-content {
  position: relative;
  z-index: 2;
  padding-top: 40px;
  padding-bottom: 40px;
}

div.breadcrumb .bc-title {
  font-size: 42px; font-weight: 800;
  color: #fff;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 10px;
}

div.breadcrumb .bcline {
  font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,0.60);
}
div.breadcrumb .bcline a       { color: rgba(255,255,255,0.60); }
div.breadcrumb .bcline a:hover { color: var(--coral-hi); }

/* ============================================================
   PAGE WRAPPER
   ============================================================ */
div.page { background: var(--bg); }
div.page div.outer {
  width: 100%;
  max-width: 1200px;
  padding: 0 32px;
  border-radius: 0;
}

/* ============================================================
   SECTIONS (Services alternating rows)
   ============================================================ */
div.section { padding: 60px 0; }

div.section h2 {
  font-size: 22px; font-weight: 700;
  color: var(--text); margin-bottom: 18px;
  letter-spacing: -0.02em;
}

div.section img {
  max-width: 360px; float: left;
  margin: 0 40px 24px 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

div.section p   { color: var(--text-muted); line-height: 1.78; margin-bottom: 12px; }
div.section ul  { padding: 4px 0; }
div.section ul li {
  position: relative; padding: 5px 0 5px 20px;
  color: var(--text-muted); font-size: 15px;
}
div.section ul li::before {
  content: '›'; position: absolute; left: 0;
  color: var(--coral); font-size: 18px; line-height: 1.5;
}

/* Services section tints — slightly different whites */
.whitebg > div.outer { position: relative; }
.transparent         { background: var(--bg-warm); }
.transparent p       { color: var(--text-muted); }
.transparent h2      { color: var(--text); }

/* ============================================================
   PRODUCTS GRID
   ============================================================ */
div.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
  gap: 20px;
}
div.products .clear { display: none; }

div.products div.product {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  float: none; width: auto; margin: 0;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t), transform var(--t), border-color var(--t);
}
div.products div.product:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-5px);
  border-color: var(--border-mid);
}

div.products div.product h2 {
  font-size: 14px; font-weight: 600; color: var(--text);
  margin: 14px 0 0; min-height: auto;
  letter-spacing: -0.01em; line-height: 1.4;
}
div.products div.product div.image {
  border-radius: var(--radius-sm); overflow: hidden;
  background: var(--bg-warm);
}
div.products div.product div.image img {
  width: 100%; transition: transform 0.38s ease;
}
div.products div.product:hover div.image img { transform: scale(1.05); }

/* Home delivery product */
div.hproduct {
  display: flex; gap: 40px; margin-bottom: 52px; align-items: flex-start;
}
div.hproduct div.image {
  width: 280px; flex-shrink: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
div.hproduct div.image img { width: 100%; }
div.hproduct div.data  { flex: 1; }
div.hproduct h3 {
  font-size: 22px; font-weight: 700;
  color: var(--text); margin-bottom: 16px;
}

/* ============================================================
   MODAL / PRODUCT POPUP
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(20,16,12,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 620px; width: 100%;
  max-height: 88vh; overflow-y: auto;
  position: relative;
  box-shadow: 0 28px 70px rgba(0,0,0,0.18), 0 8px 24px rgba(0,0,0,0.10);
}
.modal-close {
  position: absolute; top: 18px; right: 20px;
  font-size: 26px; line-height: 1;
  cursor: pointer; color: var(--text-faint);
  background: none; border: none; padding: 4px;
  transition: color var(--t);
}
.modal-close:hover { color: var(--text); }
div.pd-popup div.title {
  font-size: 22px; font-weight: 700; color: var(--text); margin-bottom: 8px;
}
div.pd-popup img {
  float: left; max-width: 230px;
  margin: 8px 28px 16px 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
div.pd-popup p { color: var(--text-muted); }
div.pd-popup strong { color: var(--text); }

/* ============================================================
   CONTACT FORM
   ============================================================ */
div.contact-form {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
}

div.form-separator {
  font-size: 18px; font-weight: 700; color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 18px; margin-bottom: 28px;
}
div.form-label {
  font-size: 12px; font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.07em;
  margin-bottom: 8px;
}
div.form-field { margin-bottom: 22px; }

.field, .textarea {
  width: 100%; padding: 11px 15px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit; font-size: 15px;
  height: auto; line-height: 1.5;
  transition: border-color var(--t), box-shadow var(--t);
}
.field:focus, .textarea:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(238,110,59,0.14);
  outline: none;
}
.field::placeholder, .textarea::placeholder { color: var(--text-faint); }
.textarea { min-height: 120px; resize: vertical; }

.btn-sbm {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 30px;
  background: var(--gradient);
  color: #fff;
  font-family: inherit; font-size: 15px; font-weight: 600;
  border: none; border-radius: var(--radius-pill);
  cursor: pointer;
  transition: opacity var(--t), transform var(--t), box-shadow var(--t);
}
.btn-sbm:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-facebook {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 24px;
  background: #1877F2;
  color: #fff;
  font-family: inherit; font-size: 15px; font-weight: 600;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: background var(--t), transform var(--t), box-shadow var(--t);
}
.btn-facebook:hover {
  background: #1464d0;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(24,119,242,0.35);
  color: #fff;
}
.btn-facebook i { font-size: 18px; }

.err-msg { color: #D94040; font-size: 12px; display: block; margin-top: 5px; }

div.form-success {
  background: rgba(238,110,59,0.06);
  border: 1px solid rgba(238,110,59,0.20);
  border-radius: var(--radius);
  padding: 28px;
}
div.form-success p { color: var(--text-muted); margin: 0 0 8px; }
div.form-success .btn-sbm { margin-top: 16px; }

/* Contact info panel */
div.half > p { color: var(--text-muted); }
div.half > p a { color: var(--coral); font-weight: 600; }

/* ============================================================
   PRIVACY PAGE
   ============================================================ */
div.privacy-content {
  max-width: 780px;
  padding: 40px 0 60px;
}
div.privacy-content h2 {
  font-size: 26px; font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}
p.privacy-updated {
  font-size: 13px; color: var(--text-faint);
  margin-bottom: 28px;
}
div.privacy-content h3 {
  font-size: 15px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--coral);
  margin: 36px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
div.privacy-content p,
div.privacy-content li {
  font-size: 15px; color: var(--text-muted);
  line-height: 1.75;
}
div.privacy-content ul {
  padding-left: 20px;
  margin: 10px 0 0;
}
div.privacy-content ul li { margin-bottom: 6px; }
div.privacy-content a { color: var(--coral); }
div.privacy-content a:hover { color: var(--coral-hi); }

table.privacy-table {
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 15px;
}
table.privacy-table td {
  padding: 7px 16px 7px 0;
  color: var(--text-muted);
  vertical-align: top;
}
table.privacy-table td:first-child {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  min-width: 160px;
}

/* ============================================================
   FOOTER
   ============================================================ */
div.footer {
  background: var(--bg-dark);
  border-top: 1px solid rgba(255,255,255,0.06);
}
div.footer div.outer {
  padding: 32px;
  display: flex;
  align-items: center; justify-content: center;
  gap: 16px; flex-wrap: wrap;
  color: rgba(255,255,255,0.35);
  font-size: 13px;
}
div.footer div.outer span        { color: rgba(255,255,255,0.35); }
div.footer div.outer a           { color: rgba(255,255,255,0.55); transition: color var(--t); }
div.footer div.outer a:hover     { color: var(--coral-hi); }
.footer-sep                      { color: rgba(255,255,255,0.15); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  div.products { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 784px) {
  div.header i.mobile-mbtn {
    display: block;
    position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  }
  div.header ul.menu {
    display: none; flex-direction: column; align-items: stretch;
    width: 100%; height: auto;
    background: rgba(255,255,255,0.98);
    border-bottom: 1px solid var(--border);
    position: absolute; top: 100%; left: 0; right: 0;
    padding: 8px 0; gap: 0;
    box-shadow: var(--shadow-md);
  }
  div.header ul.menu.open { display: flex; }
  div.header ul.menu li   { width: 100%; }
  div.header ul.menu li a { display: block; width: 100%; padding: 12px 24px; border-radius: 0; }
  div.header ul.menu li:last-child  { margin: 8px 16px; width: calc(100% - 32px); }
  div.header ul.menu li:last-child a { border-radius: var(--radius-pill); text-align: center; }

  div.houter {
    grid-template-columns: 1fr;
    padding: 24px 20px;
    gap: 16px;
  }

  div.hpage img.f-left { float: none; max-width: 100%; margin: 0 0 28px; }
  .half { width: 100%; margin: 0 0 28px; float: none; }
  div.hproduct { flex-direction: column; }
  div.hproduct div.image { width: 100%; }
  div.section img { max-width: 100%; float: none; margin: 0 0 28px; }
  div.breadcrumb { min-height: 160px; }
  div.breadcrumb .bc-title { font-size: 30px; }
  div.outer.p20 { padding-top: 52px; padding-bottom: 52px; }
  div.outer { padding: 0 20px; }
}

@media (max-width: 640px) {
  div.products { grid-template-columns: repeat(2, 1fr); }
  div.outer h1, div.outer.p20 > h1 { font-size: 30px; }
  div.outer h2 { font-size: 26px; }
  div.outer.p20 { padding-top: 40px; padding-bottom: 40px; }
}

@media (max-width: 400px) {
  div.products { grid-template-columns: 1fr; }
  div.outer { padding: 0 16px; }
  div.contact-form { padding: 24px 18px; }
}
