/* Pneuservis – dopĺňa hlavný style.css. Hlavička, navigácia a hero sú spoločné s hlavnou stránkou (style.css). */

/* ---------- Sekcie ---------- */
.tire-page .tire-section { padding: 88px 0; background: #fff; }
.tire-page .section-title { margin: 0 0 12px; color: var(--ink); font-family: var(--font-head); font-size: 38px; font-weight: 700; line-height: 1.25; letter-spacing: -1px; }
.tire-page .section-desc { max-width: 900px; margin: 0 0 32px; color: var(--muted); font-size: 16px; line-height: 1.7; }

/* Výhody */
.tire-benefits-section { background: var(--bg-soft) !important; }
.tire-benefit-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tire-benefit-card { min-height: 205px; padding: 25px 23px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow-sm); }
.tire-benefit-card .benefit-number { display: block; margin-bottom: 18px; color: var(--blue-600); font-family: var(--font-head); font-size: 13px; font-weight: 700; }
.tire-benefit-card h3 { margin: 0 0 8px; color: var(--ink); font-size: 18px; line-height: 1.4; }
.tire-benefit-card p { color: var(--muted); font-size: 14px; line-height: 1.65; }

/* Cenník */
.pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-bottom: 24px; }
.pricing-grid .card { display: block; min-width: 0; padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow-sm); }
.pricing-grid .card h3 { display: block; padding: 0 0 14px; margin: 0 0 8px; border-bottom: 1px solid var(--line); color: var(--ink); font-family: var(--font-head); font-size: 20px; line-height: 1.4; letter-spacing: -.3px; }
.pricing-grid .card p.note { margin: 0 0 16px; color: var(--muted); font-size: 13px; line-height: 1.5; max-width: none; }
.tire-page table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.tire-page th, .tire-page td { padding: 11px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.tire-page th { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .04em; }
.tire-page td.price, .tire-page th.price { text-align: right; white-space: nowrap; }
.tire-page td.price { color: var(--ink); font-weight: 600; }
.tire-page tr:last-child td { border-bottom: 0; }
.tire-page .info-banner { margin-top: 20px; padding: 18px 22px; border: 1px solid var(--blue-100); border-left: 4px solid var(--blue-500); border-radius: 16px; background: var(--bg-soft); color: var(--text); font-size: 14px; line-height: 1.7; }

/* ---------- Objednávka ---------- */
.tire-page .booking-section { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.booking-wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr); align-items: start; gap: 32px; }
.tire-page .booking-form { padding: 30px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow-sm); }
.tire-page .form-group { margin-bottom: 22px; }
.tire-page .form-label { display: block; margin-bottom: 9px; color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.5; }
.tire-page .form-hint { color: var(--muted); font-weight: 400; }
.tire-page .input-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.tire-page input[type="text"], .tire-page input[type="tel"], .tire-page input[type="email"], .tire-page input[type="date"], .tire-page select, .tire-page textarea {
  width: 100%; min-height: 50px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--blue-50); color: var(--ink); font-size: 15px; line-height: 24px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.tire-page select { appearance: none; -webkit-appearance: none; padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232b63d3' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center; }
.tire-page select option:disabled { color: #b6c3da; }
.tire-page input:hover, .tire-page select:hover { border-color: var(--blue-300); }
.tire-page input:focus, .tire-page select:focus, .tire-page textarea:focus { outline: none; background-color: #fff; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(63, 123, 232, .18); }
.tire-page input::placeholder { color: #93a5c4; }

/* Voľba služby (radio) */
.tire-page .radio-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tire-page .option-box { position: relative; display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--text); cursor: pointer; font-size: 14px; font-weight: 500; line-height: 1.4; transition: border-color .2s, background-color .2s, box-shadow .2s, color .2s; }
.tire-page .option-box:hover { border-color: var(--blue-300); background: var(--blue-50); }
.tire-page .option-box input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--blue-600); cursor: pointer; }
.tire-page .option-box.is-checked { border-color: var(--blue-500); background: var(--blue-50); color: var(--ink); box-shadow: 0 0 0 3px rgba(63, 123, 232, .14); font-weight: 600; }

/* Špecifiká + Príplatky (karty s checkboxom) */
.extra-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.extra-box { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: start; column-gap: 12px; row-gap: 8px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; cursor: pointer; transition: border-color .2s, background-color .2s, box-shadow .2s; }
.extra-box:hover { border-color: var(--blue-300); background: var(--blue-50); }
.extra-box > input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.extra-check { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-top: 1px; border: 1.5px solid var(--blue-300); border-radius: 8px; background: #fff; color: #fff; transition: background-color .2s, border-color .2s; }
.extra-check .icon { width: 15px; height: 15px; stroke-width: 3; opacity: 0; transform: scale(.6); transition: opacity .15s, transform .2s var(--ease); }
.extra-main { display: flex; flex-direction: column; min-width: 0; }
.extra-main strong { color: var(--ink); font-size: 14px; font-weight: 600; line-height: 20px; }
.extra-main small { margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 17px; }
.extra-price { align-self: start; padding: 3px 10px; border-radius: 999px; background: var(--blue-100); color: var(--blue-700); font-size: 12px; font-weight: 600; line-height: 18px; white-space: nowrap; }
.tire-page .extra-qty { grid-column: 2 / -1; width: auto; max-width: 120px; min-height: 38px; padding: 4px 34px 4px 12px; border-radius: 12px; font-size: 14px; background-color: #fff; background-position: right 11px center; }
.extra-qty[hidden] { display: none; }
.extra-box:focus-within { box-shadow: 0 0 0 4px rgba(63, 123, 232, .18); border-color: var(--blue-500); }
.extra-box.is-checked { border-color: var(--blue-500); background: var(--blue-50); box-shadow: 0 0 0 3px rgba(63, 123, 232, .12); }
.extra-box.is-checked .extra-check { background: var(--blue-600); border-color: var(--blue-600); }
.extra-box.is-checked .extra-check .icon { opacity: 1; transform: none; }
.extra-box.is-checked .extra-price { background: var(--blue-600); color: #fff; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Súhrn */
.tire-page .summary-card { position: sticky; top: 98px; padding: 26px; border: 1px solid rgba(255,255,255,.13); border-radius: 24px; background: var(--ink); color: #fff; box-shadow: var(--shadow-md); }
.tire-page .summary-card h3 { margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.18); color: #fff; font-size: 21px; }
.tire-page .summary-row { display: flex; justify-content: space-between; gap: 12px; margin: 12px 0; color: #c8d5ec; font-size: 13px; line-height: 1.45; }
.tire-page .summary-row strong { color: #fff; text-align: right; }
.tire-page .total-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 20px 0; padding: 16px; border-radius: 16px; background: rgba(255,255,255,.1); }
.tire-page .total-box span { color: #dce6f7; font-size: 13px; line-height: 1.5; }
.tire-page .total-box strong { color: #9fc0fb; font-family: var(--font-head); font-size: 26px; white-space: nowrap; }
.tire-page .summary-note { margin: 0 0 16px; color: #cbd5e1; font-size: 12px; line-height: 1.55; }
.tire-page .btn-submit { width: 100%; min-height: 52px; padding: 12px; border: 0; border-radius: 999px; background: var(--blue-500); color: #fff; cursor: pointer; font-size: 15px; font-weight: 600; transition: background-color .2s, transform .2s var(--ease); }
.tire-page .btn-submit:hover { background: var(--blue-400); transform: translateY(-1px); }
.tire-page .btn-submit:disabled { opacity: .7; cursor: wait; transform: none; }
.tire-page .status-msg { margin-top: 14px; padding: 12px 14px; border-radius: 12px; font-size: 13px; line-height: 1.55; }
.tire-page .status-msg[hidden] { display: none; }
.tire-page .status-msg.success { border: 1px solid #bbf7d0; background: #f0fdf4; color: #15803d; }
.tire-page .status-msg.error { border: 1px solid #fecaca; background: #fef2f2; color: #b91c1c; }

/* ---------- Responzívne ---------- */
@media (max-width: 980px) {
  .tire-benefit-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .booking-wrap { grid-template-columns: 1fr; }
  .tire-page .summary-card { position: static; }
}
@media (max-width: 720px) {
  .tire-page .tire-section { padding: 64px 0; }
  .tire-page .section-title { font-size: 30px; }
  .tire-benefit-cards { grid-template-columns: 1fr; }
  .tire-benefit-card { min-height: 0; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-grid .card { padding: 22px 16px; }
  .tire-page table { font-size: 12px; }
  .tire-page th, .tire-page td { padding: 9px 5px; }
  .tire-page th { font-size: 9px; }
  .tire-page .booking-form { padding: 20px 16px; }
  .tire-page .input-row, .tire-page .radio-grid, .extra-grid { grid-template-columns: 1fr; gap: 0; }
  .tire-page .input-row { gap: 0; }
  .tire-page .option-box, .extra-box { margin-bottom: 8px; }
}

/* ---------- Prihlásenie / profil v navigácii ---------- */
.header .nav > .nav-login { gap: 8px; }
.header .nav > .nav-login .icon { width: 18px; height: 18px; }

.u-avatar { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--blue-500), var(--blue-700)); color: #fff; font-family: var(--font-head); font-size: 16px; font-weight: 700; line-height: 1; box-shadow: 0 0 0 3px var(--blue-100); }
.u-dot { position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border: 2px solid #fff; border-radius: 50%; background: #22c55e; }
.u-text { display: flex; flex-direction: column; min-width: 0; text-align: left; line-height: 18px; }
.u-text strong { max-width: 150px; overflow: hidden; color: var(--ink); font-size: 14px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.u-text small { max-width: 150px; overflow: hidden; color: var(--muted); font-size: 12px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }

.user-menu { position: relative; }
.user-chip { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 14px 0 7px; border: 1px solid var(--blue-200); border-radius: 999px; background: linear-gradient(#fff, var(--blue-50)); color: var(--ink); cursor: pointer; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.user-chip:hover, .user-menu.open .user-chip { border-color: var(--blue-300); box-shadow: var(--shadow-sm); }
.user-chip .u-caret { color: var(--blue-600); transition: transform .3s var(--ease); }
.user-menu.open .u-caret { transform: rotate(180deg); }

.user-drop { position: absolute; right: 0; top: 64px; z-index: 5; width: 280px; padding: 8px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s; }
.user-menu.open .user-drop { opacity: 1; visibility: visible; transform: translateY(0); }
.ud-head { display: flex; flex-direction: column; margin-bottom: 6px; padding: 12px 14px; border-radius: 14px; background: var(--blue-50); line-height: 20px; }
.ud-label { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.ud-head strong { overflow: hidden; color: var(--ink); font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.ud-head small { overflow: hidden; color: var(--muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.nav .user-drop a, .user-drop form button { display: flex; align-items: center; gap: 12px; width: 100%; height: 46px; padding: 0 14px; border: 0; border-radius: 14px; background: transparent; color: var(--ink); font: inherit; font-size: 14.5px; font-weight: 600; text-align: left; cursor: pointer; transition: background-color .2s, color .2s; }
.nav .user-drop a:hover, .user-drop form button:hover { background: var(--blue-50); color: var(--blue-600); }
.user-drop .icon { width: 19px; height: 19px; color: var(--blue-600); }
.user-drop form { margin: 4px 0 0; padding-top: 4px; border-top: 1px solid var(--line); }
.user-drop form button:hover { background: #fef2f2; color: #dc2626; }
.user-drop form button:hover .icon { color: #dc2626; }

/* Mobilné menu – účet dole */
.m-account { display: flex; flex: none; flex-direction: column; gap: 10px; }
.m-account form { margin: 0; }
.m-user { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--blue-200); border-radius: 20px; background: linear-gradient(#fff, var(--blue-50)); }
.m-user .u-text strong, .m-user .u-text small { max-width: 220px; }
.m-user .u-text strong { font-size: 16px; }
.m-user .u-text small { font-size: 13px; }
.m-account form .btn, .m-account .btn { width: 100%; }
