:root {
  --at-black: #0a0b0c;
  --at-charcoal: #141619;
  --at-yellow: #ffc400;
  --at-yellow-dark: #e1a900;
  --at-text: #15171a;
  --at-muted: #686c73;
  --at-line: #e3e5e8;
  --at-surface: #fff;
  --at-soft: #f6f7f8;
  --at-shell: 1600px;
  --at-shadow: 0 8px 26px rgba(20, 22, 25, .06);

  /* One shared palette for the supplied page prototypes. */
  --black: var(--at-black);
  --charcoal: var(--at-charcoal);
  --charcoal-2: #202327;
  --yellow: var(--at-yellow);
  --yellow2: #ffb900;
  --yellow-2: #ffb900;
  --yellow-strong: var(--at-yellow);
  --text: var(--at-text);
  --ink: var(--at-text);
  --muted: var(--at-muted);
  --line: var(--at-line);
  --surface: var(--at-surface);
  --paper: var(--at-surface);
  --page: var(--at-surface);
  --card: var(--at-surface);
  --panel: var(--at-surface);
  --body: var(--at-surface);
  --bg: var(--at-surface);
  --white: var(--at-surface);
  --soft: var(--at-soft);
  --canvas: var(--at-soft);
  --blue-soft: #fff8df;
  --dark: var(--at-black);
  --dark-2: var(--at-charcoal);
  --footer: var(--at-charcoal);
  --navy: var(--at-black);
  --navy-2: var(--at-charcoal);
  --red: var(--at-yellow);
  --red-dark: var(--at-yellow-dark);
  --blue: #a87500;
  --blue-dark: #7a5600;
  --blue-2: #936800;
  --gold: var(--at-yellow);
  --max: 1600px;
  --container: 1600px;
}

html { scroll-behavior: smooth; }
body.autotaktas-prototype {
  color: var(--at-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  font-size: 16px;
  line-height: 1.65;
}
body.autotaktas-prototype > .topbar { display: none !important; }

.at-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.at-chrome-shell {
  width: min(calc(100% - 48px), var(--at-shell));
  margin-inline: auto;
}

.at-global-header,
.at-global-header * ,
.at-global-footer,
.at-global-footer * { box-sizing: border-box; }

.at-global-header {
  position: relative;
  z-index: 1000;
  min-height: 72px;
  color: #fff;
  background: linear-gradient(105deg, #08090a 0%, #17191c 100%);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  font-family: Arial, Helvetica, sans-serif;
}

.at-header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.at-brand { display: inline-flex; flex: 0 0 auto; line-height: 0; }
.at-brand img { display: block; width: 210px; height: auto; }
.at-desktop-nav { display: flex; align-items: stretch; align-self: stretch; gap: 29px; margin-left: auto; }
.at-desktop-nav a {
  display: inline-flex;
  align-items: center;
  position: relative;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .035em;
  white-space: nowrap;
}
.at-desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 3px;
  background: var(--at-yellow);
  transition: right .18s ease;
}
.at-desktop-nav a:hover::after,
.at-desktop-nav a:focus-visible::after { right: 0; }

.at-header-search {
  width: 184px;
  height: 39px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 3px;
  background: rgba(255, 255, 255, .06);
}
.at-header-search input {
  min-width: 0;
  width: 100%;
  height: 100%;
  padding: 0 5px 0 10px;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  font: 13px Arial, sans-serif;
}
.at-header-search input::placeholder { color: rgba(255, 255, 255, .66); }
.at-header-search button,
.at-menu-toggle {
  border: 0;
  color: #fff;
  background: transparent;
  cursor: pointer;
}
.at-header-search button { width: 39px; height: 37px; padding: 9px; }
.at-header-search svg,
.at-menu-toggle svg { display: block; width: 100%; height: 100%; }
.at-menu-toggle { display: none; width: 42px; height: 42px; margin-left: auto; padding: 9px; }
.at-mobile-nav { display: none; }

.at-breadcrumb-wrap {
  position: relative;
  z-index: 20;
  color: var(--at-muted);
  background: #fff;
  border-bottom: 1px solid var(--at-line);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
.at-breadcrumbs { min-height: 52px; display: flex; align-items: center; }
.at-breadcrumbs ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.at-breadcrumbs li { display: inline-flex; align-items: center; font-size: 13px; line-height: 1.35; }
.at-breadcrumbs li + li::before {
  content: "/";
  margin: 0 12px;
  color: #bd9200;
  font-weight: 700;
}
.at-breadcrumbs a { color: #555b63; text-decoration: none; }
.at-breadcrumbs a:hover { color: #111; }
.at-breadcrumbs [aria-current="page"] { color: #15171a; font-weight: 650; }

.at-global-footer {
  position: relative;
  z-index: 10;
  margin: 0;
  padding: 76px 0 0;
  color: #fff;
  background: radial-gradient(circle at 48% -40%, #30343a 0, #15171a 38%, #090a0b 75%);
  font-family: Arial, Helvetica, sans-serif;
}
.at-footer-grid {
  display: grid;
  grid-template-columns: 1.45fr .8fr 1fr 1fr 1.35fr;
  gap: 50px;
  padding-bottom: 62px;
}
.at-footer-brand img { display: block; width: 205px; height: auto; margin-bottom: 20px; }
.at-footer-brand p,
.at-footer-news p { margin: 0 0 18px; color: #aeb2b8; font-size: 13px; line-height: 1.65; }
.at-footer-socials { display: flex; gap: 9px; }
.at-footer-socials a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  border: 1px solid #3b3e43;
  border-radius: 50%;
  transition: color .18s ease, border-color .18s ease;
}
.at-footer-socials a:hover { color: var(--at-yellow); border-color: var(--at-yellow); }
.at-footer-socials svg { width: 16px; height: 16px; }
.at-footer-links,
.at-footer-news { display: flex; flex-direction: column; align-items: flex-start; }
.at-global-footer h2 {
  margin: 2px 0 19px;
  color: #fff;
  font-size: 14px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.at-footer-links a {
  margin: 0 0 10px;
  color: #b9bdc2;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.3;
}
.at-footer-links a:hover,
.at-footer-links a:focus-visible { color: var(--at-yellow); }
.at-footer-news form { width: 100%; }
.at-footer-news input {
  width: 100%;
  height: 38px;
  padding: 0 11px;
  color: #fff;
  border: 1px solid #45484d;
  border-radius: 3px;
  background: #202225;
  font: 13px Arial, sans-serif;
}
.at-footer-news button {
  width: 100%;
  min-height: 38px;
  margin-top: 8px;
  padding: 9px 12px;
  color: #111;
  border: 0;
  border-radius: 3px;
  background: var(--at-yellow);
  font: 800 12px Arial, sans-serif;
  text-transform: uppercase;
  cursor: pointer;
}
.at-footer-note { display: block; min-height: 18px; margin-top: 7px; color: #b9bdc2; font-size: 11px; line-height: 1.4; }
.at-footer-bottom {
  min-height: 68px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: #81858b;
  border-top: 1px solid #303237;
  font-size: 11px;
}
.at-footer-bottom span:last-child { display: inline-flex; align-items: center; gap: 5px; }
.at-footer-bottom svg { width: 14px; height: 14px; color: var(--at-yellow); }

/* Shared interaction language and focus accessibility. */
body.autotaktas-prototype :where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--at-yellow) !important;
  outline-offset: 2px !important;
}
body.autotaktas-prototype :where(.primary-button, .calculate-button, .yellow-button, .btn-primary, .hero-search button, .dialog-submit, .wpcf7-submit) {
  color: #111 !important;
  border-color: var(--at-yellow) !important;
  background: var(--at-yellow) !important;
}
body.autotaktas-prototype :where(.primary-button, .calculate-button, .yellow-button, .btn-primary, .hero-search button, .dialog-submit, .wpcf7-submit):hover {
  border-color: #ffd133 !important;
  background: #ffd133 !important;
}

/* Real map replaces the original static map illustration. */
.map-section.at-google-map {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  background: #e9ecef !important;
  background-image: none !important;
}
.map-section.at-google-map iframe {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.map-section.at-google-map .map-card { position: absolute; z-index: 2; }

@media (max-width: 980px) {
  .at-desktop-nav { gap: 13px; }
  .at-header-search { display: none; }
  .at-footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); }
  .at-footer-news { grid-column: 1 / -1; max-width: 390px; }
}

@media (max-width: 760px) {
  .at-chrome-shell { width: min(calc(100% - 30px), var(--at-shell)); }
  .at-global-header,
  .at-header-inner { min-height: 64px; }
  .at-brand img { width: 176px; }
  .at-desktop-nav { display: none; }
  .at-menu-toggle { display: block; }
  .at-mobile-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    display: none;
    padding: 8px 15px 16px;
    background: #111315;
    border-top: 1px solid #2d3034;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .25);
  }
  .at-mobile-nav.is-open { display: grid; }
  .at-mobile-nav a { padding: 12px 10px; color: #fff; border-bottom: 1px solid #2d3034; text-decoration: none; font-size: 13px; font-weight: 800; text-transform: uppercase; }
  .at-mobile-nav a:last-child { border-bottom: 0; }
  .at-breadcrumbs { min-height: 46px; overflow-x: auto; }
  .at-breadcrumbs ol { flex-wrap: nowrap; white-space: nowrap; }
  .at-breadcrumbs li { font-size: 12px; }
  .at-breadcrumbs li + li::before { margin-inline: 9px; }
  .at-footer-grid { grid-template-columns: 1fr 1fr; gap: 34px 24px; }
  .at-footer-brand,
  .at-footer-news { grid-column: 1 / -1; }
  .at-footer-bottom { padding: 16px 0; flex-direction: column; justify-content: center; text-align: center; }
  .map-section.at-google-map { min-height: 450px; }
  .map-section.at-google-map .map-card { left: 16px; right: 16px; bottom: 16px; width: auto; }
}

/* Spacious editorial layout. The source prototypes were designed at 860–1000px,
   which made the live site look like a scaled-down mockup on modern screens. */
@media (min-width: 901px) {
  body.autotaktas-prototype :where(main .shell, main .container) {
    width: min(calc(100% - 48px), 1600px) !important;
    max-width: 1600px !important;
  }

  /* Homepage: fewer, larger stories and one clear lead story. */
  body.home .hero {
    height: 440px;
  }
  body.home .hero__inner {
    padding-top: 76px;
  }
  body.home .hero__copy {
    width: 720px;
  }
  body.home .hero h1 {
    max-width: 690px;
    margin-bottom: 22px;
    font-size: clamp(46px, 4.3vw, 60px);
    line-height: 1.02;
    letter-spacing: -.045em;
  }
  body.home .hero p {
    max-width: 620px;
    margin-bottom: 28px;
    font-size: 17px;
    line-height: 1.6;
  }
  body.home .hero-search {
    width: 760px;
    height: 60px;
    grid-template-columns: 1fr 1fr 160px;
    border-radius: 2px;
  }
  body.home .popular-searches {
    margin-top: 18px;
    gap: 10px;
    font-size: 12px;
  }
  body.home .popular-searches button {
    padding: 7px 14px;
    border-radius: 2px;
  }
  body.home .category-panel {
    margin-top: -58px;
    padding: 30px 34px 0;
    border-radius: 2px;
    box-shadow: 0 18px 45px rgba(20, 22, 25, .1);
  }
  body.home .category-grid {
    grid-template-columns: 1fr 1fr 1fr 270px;
    gap: 18px;
  }
  body.home .category-list a { min-height: 61px; gap: 14px; }
  body.home .category-list i { width: 36px; font-size: 25px; }
  body.home .category-list b { margin-bottom: 3px; font-size: 14px; }
  body.home .category-list small { font-size: 11px; }
  body.home .partners { padding-left: 28px; }
  body.home .partners h2 { margin-bottom: 18px; font-size: 13px; }
  body.home .partner-grid { gap: 10px; }
  body.home .partner-grid span { height: 54px; font-size: 14px; }
  body.home .all-categories { height: 48px; margin-top: 20px; font-size: 12px; }
  body.home .promo {
    height: 92px;
    margin-top: 20px;
    grid-template-columns: 230px 1fr 210px;
  }
  body.home .promo img { width: 230px; height: 92px; }
  body.home .promo h2 { font-size: 21px; }
  body.home .promo p { margin-top: 7px; font-size: 12px; }
  body.home .promo a { padding: 13px 28px; font-size: 12px; }
  body.home .content-shell {
    grid-template-columns: minmax(0, 1fr) 255px;
    gap: 34px;
    margin-top: 50px;
  }
  body.home .section-heading { margin-bottom: 22px; }
  body.home .section-heading h2 {
    padding-left: 14px;
    border-left-width: 4px;
    font-size: 30px;
    line-height: 1.1;
  }
  body.home .section-heading a { font-size: 12px; }
  body.home .article-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
  body.home .article-card {
    border: 0;
    border-bottom: 1px solid var(--at-line);
    background: transparent;
  }
  body.home .article-card img { height: 180px; }
  body.home .article-card > div { padding: 17px 2px 18px; }
  body.home .article-card h3 {
    min-height: 0;
    margin-bottom: 13px;
    font-size: 18px;
    line-height: 1.32;
    letter-spacing: -.015em;
  }
  body.home .article-card > div > a { font-size: 10px; letter-spacing: .07em; }
  body.home .article-card footer { margin-top: 17px; font-size: 10px; }
  body.home .article-card:first-child {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    min-height: 286px;
    color: #fff;
    background: var(--at-black);
    border-bottom: 0;
  }
  body.home .article-card:first-child > a,
  body.home .article-card:first-child img { height: 100%; min-height: 286px; }
  body.home .article-card:first-child > div { padding: 32px 30px; align-self: center; }
  body.home .article-card:first-child h3 { font-size: 27px; line-height: 1.18; }
  body.home .article-card:first-child > div > a { color: var(--at-yellow); }
  body.home .article-card:first-child footer { color: #aeb3b8; }
  body.home .ad-column { gap: 24px; padding-top: 39px; }
  body.home .companies { padding: 58px 0 54px; }
  body.home .company-carousel { gap: 22px; }
  body.home .company-carousel img { height: 130px; }
  body.home .company-carousel article > :where(div, h3, p, footer) { margin-inline: 16px; }
  body.home .company-carousel h3 { font-size: 16px; }
  body.home .company-carousel p { min-height: 58px; font-size: 12px; }
  body.home .company-carousel footer { padding: 13px 0; font-size: 10px; }

  /* Contact page: asymmetrical, calm and generous rather than card-heavy. */
  body.page-template-template-contact-php .hero { height: 360px; }
  body.page-template-template-contact-php .hero-content { padding-top: 66px; }
  body.page-template-template-contact-php .breadcrumbs { margin-bottom: 30px; font-size: 13px; }
  body.page-template-template-contact-php .hero h1 { margin-bottom: 24px; font-size: 56px; }
  body.page-template-template-contact-php .hero p { font-size: 17px; }
  body.page-template-template-contact-php .contact-section {
    grid-template-columns: .82fr 1.3fr;
    gap: 90px;
    padding-top: 72px;
    padding-bottom: 82px;
  }
  body.page-template-template-contact-php .contact-details { padding: 8px 0 0; }
  body.page-template-template-contact-php .contact-details h2,
  body.page-template-template-contact-php .form-card h2 { font-size: 32px; }
  body.page-template-template-contact-php .contact-details h2 { margin-bottom: 34px; }
  body.page-template-template-contact-php .contact-item {
    grid-template-columns: 50px 1fr;
    gap: 18px;
    margin-bottom: 28px;
  }
  body.page-template-template-contact-php .icon-tile {
    width: 48px;
    height: 48px;
    border-radius: 3px;
    box-shadow: none;
  }
  body.page-template-template-contact-php .contact-item span { font-size: 13px; }
  body.page-template-template-contact-php .contact-item a,
  body.page-template-template-contact-php .contact-item strong { font-size: 17px; }
  body.page-template-template-contact-php .contact-item small { font-size: 13px; }
  body.page-template-template-contact-php .form-card {
    padding: 42px 44px 36px;
    border-radius: 2px;
    border: 1px solid #dfe1e4;
    border-top: 4px solid var(--at-yellow);
    background: #fbfbfa;
    box-shadow: none;
  }
  body.page-template-template-contact-php .form-card > p { margin-bottom: 28px; font-size: 14px; }
  body.page-template-template-contact-php .form-card form { gap: 18px; }
  body.page-template-template-contact-php .form-card input { min-height: 52px; }
  body.page-template-template-contact-php .form-card textarea { min-height: 160px; }
  body.page-template-template-contact-php .wpcf7-submit { min-height: 50px; font-size: 13px; }
  body.page-template-template-contact-php .map-section.at-google-map {
    min-height: 500px;
    margin-bottom: 30px;
  }
  body.page-template-template-contact-php .map-card {
    width: 330px;
    padding: 30px;
    border-radius: 2px;
  }
  body.page-template-template-contact-php .newsletter {
    min-height: 142px;
    grid-template-columns: 80px 1fr 500px;
    gap: 28px;
    padding: 24px 30px;
    border-radius: 2px;
  }
  body.page-template-template-contact-php .newsletter-icon { width: 70px; height: 70px; border-radius: 3px; }
  body.page-template-template-contact-php .newsletter-copy h3 { font-size: 21px; }
  body.page-template-template-contact-php .newsletter-copy p { font-size: 13px; }

  /* Legal pages: comfortable reading size and more natural line rhythm. */
  body.page-template-template-privacy-php .container,
  body.page-template-template-legal-php .container { padding-block: 54px 76px; }
  body.page-template-template-privacy-php .legal-layout,
  body.page-template-template-legal-php .legal-layout {
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 72px;
  }
  body.page-template-template-privacy-php .article-head h1,
  body.page-template-template-legal-php .article-head h1 { font-size: 48px; }
  body.page-template-template-privacy-php .lead,
  body.page-template-template-legal-php .lead { max-width: 790px; font-size: 16px; line-height: 1.75; }
  body.page-template-template-privacy-php .policy-content section,
  body.page-template-template-legal-php .policy-content section { margin-bottom: 34px; }
  body.page-template-template-privacy-php .policy-content h2,
  body.page-template-template-legal-php .policy-content h2 { margin-bottom: 12px; font-size: 23px; }
  body.page-template-template-privacy-php .policy-content p,
  body.page-template-template-privacy-php .policy-content li,
  body.page-template-template-legal-php .policy-content p,
  body.page-template-template-legal-php .policy-content li { font-size: 15px; line-height: 1.78; }

  /* Calculators: full-size controls and results rather than a narrow widget. */
  body.page-template-template-tire-calculator-php .at-calculator-card,
  body[class*="calculator"] .at-calculator-card {
    max-width: 1050px;
    padding: 48px 58px 44px;
  }
  body.page-template-template-tire-calculator-php .at-fields-grid,
  body[class*="calculator"] .at-fields-grid { gap: 26px 34px; margin-bottom: 30px; }
  body.page-template-template-tire-calculator-php .at-field label,
  body[class*="calculator"] .at-field label { margin-bottom: 10px; font-size: 15px; }
  body.page-template-template-tire-calculator-php .at-field :where(input, select),
  body[class*="calculator"] .at-field :where(input, select) { height: 52px; font-size: 16px; }
  body.page-template-template-tire-calculator-php .at-result-grid,
  body[class*="calculator"] .at-result-grid { max-width: 1050px; gap: 22px; }
  body.page-template-template-tire-calculator-php .at-result-grid .result-card,
  body[class*="calculator"] .at-result-grid .result-card { min-height: 180px; padding: 28px 22px; }
}

@media (max-width: 900px) {
  body.autotaktas-prototype { font-size: 15px; }
  .at-global-footer { padding-top: 52px; }
}

@media (max-width: 480px) {
  .at-footer-grid { grid-template-columns: 1fr; }
  .at-footer-brand,
  .at-footer-news { grid-column: auto; }
}
