/* AGD Tyczyn — independent regional service layout */
:root {
    --violet: #624b90;
    --violet-deep: #50406f;
    --lilac: #e7e1f5;
    --coral: #ed735b;
    --coral-soft: #ffe6dd;
    --mint: #c6efe1;
    --ice: #f3f7ff;
    --white: #ffffff;
    --ink: #4e5470;
    --line: #dad6eb;
    --shadow: 0 14px 42px rgba(93, 78, 139, .1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Arial, 'Segoe UI', sans-serif; color: var(--ink); background: var(--white); line-height: 1.65; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid var(--coral); outline-offset: 5px; }
a:hover { color: var(--coral); }
.wrap { width: min(1160px, calc(100% - 56px)); margin-inline: auto; }
.ribbon { background: var(--violet); color: #fff; }
.ribbon-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 7px 0; font-size: 12px; font-weight: 700; letter-spacing: .10em; text-transform: uppercase; }
.ribbon-inner span:last-child { color: var(--mint); }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; gap: 25px; align-items: center; justify-content: space-between; min-height: 90px; }
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--violet-deep); flex-shrink: 0; }
.logo-mark { width: 45px; height: 45px; background: var(--coral); border-radius: 50%; display: inline-flex; justify-content: center; align-items: center; transform: rotate(-13deg); position: relative; }
.logo-mark:before { content: ''; width: 22px; height: 23px; border: 3px solid white; border-radius: 7px; }
.logo-mark:after { content: ''; position: absolute; top: 15px; left: 20px; width: 7px; height: 7px; border: 2px solid white; border-radius: 100%; }
.logo-title { font-size: 22px; font-weight: 800; letter-spacing: -.04em; line-height: 1.2; white-space: nowrap; }
.logo-title small { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; color: #777c99; padding-top: 5px; }
.nav { display: flex; gap: 24px; align-items: center; font-size: 14px; font-weight: 700; }
.nav a { padding-block: 9px; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current='page'] { border-bottom-color: var(--coral); color: var(--violet); }
.phone { display: inline-flex; justify-content: center; align-items: center; background: var(--violet); border-radius: 100px; color: white; padding: 13px 20px; font-size: 15px; font-weight: 800; white-space: nowrap; }
.phone:hover { background: var(--coral); color: white; }
.hero { padding-block: 58px 55px; background: linear-gradient(105deg, #f6f3fe 0%, #f6f3fe 65%, #e6fff4 100%); overflow: hidden; }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(0, .95fr); align-items: center; gap: 54px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; color: var(--violet); }
.eyebrow:before { content: ''; width: 28px; height: 4px; border-radius: 2px; background: var(--coral); }
h1, h2, h3 { color: var(--violet-deep); line-height: 1.17; letter-spacing: -.034em; margin: 0; }
h1 { font-size: 40px; margin: 21px 0 25px; }
h2 { font-size: 28px; margin: 0 0 20px; }
h3 { font-size: 20px; margin: 0 0 12px; }
p { font-size: 16px; margin: 0 0 16px; }
.hero-copy p { max-width: 680px; }
.hero-copy p:last-of-type { margin-bottom: 0; }
.location-line { color: var(--violet); font-size: 15px; margin-top: 16px !important; }
.location-line strong { font-weight: 800; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 25px; }
.primary-button, .text-button { display: inline-flex; align-items: center; justify-content: center; min-height: 47px; border-radius: 7px; padding: 11px 23px; font-size: 15px; font-weight: 800; }
.primary-button { background: var(--coral); color: white; }
.primary-button:hover { background: var(--violet); color: #fff; }
.text-button { border: 2px solid var(--violet); color: var(--violet); }
.text-button:hover { background: var(--violet); color: white; }
.visual-panel { align-self: stretch; display: flex; flex-direction: column; justify-content: center; position: relative; padding: 30px 22px 25px; border-radius: 100px 12px 12px 12px; background: #dcd3f1; border: 1px solid #cdbfe9; }
.visual-topline { font-size: 12px; letter-spacing: .15em; font-weight: 800; text-transform: uppercase; color: var(--violet); align-self: flex-end; }
.oven-scene { display: flex; flex: 1; justify-content: center; align-items: center; min-height: 340px; position: relative; }
.oven-scene:before { content: ''; position: absolute; width: 96%; height: 78%; border: 2px dashed rgba(98,75,144,.22); border-radius: 50%; transform: rotate(-16deg); }
.oven-machine { position: relative; width: min(280px, 78%); height: 315px; border: 11px solid #6c579a; border-radius: 21px; background: #f7f4ff; box-shadow: 15px 21px 0 rgba(108,87,154,.17); transform: rotate(-5deg); }
.oven-controls { display: flex; align-items: center; gap: 16px; height: 64px; padding-inline: 21px; border-bottom: 9px solid #6c579a; }
.oven-knob { width: 25px; height: 25px; border-radius: 50%; background: var(--coral); border: 5px solid #f4c5b9; }
.oven-clock { width: 84px; height: 30px; background: #c5eee2; border-radius: 5px; margin-left: auto; position: relative; }
.oven-clock:after { content: ''; position: absolute; width: 36px; height: 5px; background: var(--violet); border-radius: 5px; left: 24px; top: 12px; }
.oven-window { height: 196px; margin: 15px 18px 0; border: 9px solid #7566a4; border-radius: 13px; background: linear-gradient(140deg, #a9daf0, #d9f7f0); position: relative; overflow: hidden; }
.oven-window:before { content: ''; position: absolute; width: 48%; height: 170%; left: 12px; top: -45px; background: rgba(255,255,255,.48); transform: rotate(26deg); }
.oven-rack { position: absolute; height: 5px; left: 10%; width: 80%; background: #78669d; border-radius: 5px; }
.oven-rack.one { top: 37%; }
.oven-rack.two { top: 69%; }
.oven-handle { position: absolute; width: 53%; height: 12px; left: 23%; bottom: 6px; background: var(--coral); border-radius: 8px; }
.satellite { position: absolute; width: 80px; height: 80px; border: 11px solid var(--mint); border-radius: 50%; right: 4%; top: 17%; background: #fff; }
.satellite:after { content: ''; position: absolute; inset: 21px; border: 7px solid var(--coral); border-radius: 50%; }
.visual-caption { padding: 13px 17px; font-size: 14px; line-height: 1.5; background: white; border-left: 6px solid var(--coral); border-radius: 4px; color: var(--violet-deep); }
.visual-caption strong { display: block; font-size: 15px; margin-bottom: 3px; }
.service-band { background: var(--violet); color: white; }
.band-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding-block: 17px; font-size: 14px; font-weight: 700; }
.band-inner span { display: inline-flex; align-items: center; gap: 12px; }
.band-inner span:before { content: ''; display: inline-block; width: 8px; height: 8px; background: var(--mint); border-radius: 50%; }
.section { padding-block: 74px; }
.section.soft { background: var(--ice); }
.section-title { max-width: 830px; margin-bottom: 25px; }
.section-kicker { display: inline-block; color: var(--coral); font-size: 12px; letter-spacing: .14em; font-weight: 800; text-transform: uppercase; margin-bottom: 15px; }
.lead { color: var(--ink); max-width: 880px; font-size: 17px; }
.repair-stack { border-top: 2px solid var(--violet); margin-top: 29px; }
.repair-row { display: grid; grid-template-columns: 200px 1fr; gap: 40px; padding-block: 24px; border-bottom: 1px solid var(--line); }
.repair-label { display: flex; align-items: flex-start; gap: 12px; color: var(--violet); font-size: 17px; font-weight: 800; }
.repair-label:before { content: ''; margin-top: 8px; flex: 0 0 auto; width: 12px; height: 12px; border: 4px solid var(--coral); border-radius: 50%; }
.repair-row p { margin: 0; }
.twinned { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.note { padding: 30px 32px; border-radius: 12px; border-top: 7px solid var(--coral); background: white; box-shadow: var(--shadow); }
.note:nth-child(2) { border-top-color: var(--violet); }
.note p:last-child { margin-bottom: 0; }
.steps { padding-block: 72px; background: var(--coral-soft); }
.steps-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.step { border-left: 3px solid var(--coral); padding: 4px 22px 4px 20px; }
.step-number { display: block; color: var(--coral); font-size: 22px; font-weight: 900; margin-bottom: 10px; }
.step p { margin: 0; }
.local { background: #f7f4ff; border-block: 1px solid var(--line); }
.local-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: start; }
.local p:last-child { margin-bottom: 0; }
.local-names { padding: 25px 30px; border-radius: 11px; background: #fff; border-left: 8px solid var(--mint); }
.local-names p { margin: 0; line-height: 1.9; }
.local-names strong { color: var(--violet); }
.cta { padding-block: 48px; color: #fff; background: var(--violet); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.cta h2 { color: #fff; margin-bottom: 9px; }
.cta p { margin-bottom: 0; }
.cta .primary-button { min-width: 190px; }
.footer { padding-block: 34px; background: #ebe5f6; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; color: var(--violet); font-size: 14px; }
.footer-brand { font-weight: 900; font-size: 18px; }
.footer-nav { display: flex; gap: 25px; flex-wrap: wrap; font-weight: 700; }
/* Alternative lead layouts */
.intro-short .hero-layout { grid-template-columns: minmax(0, 1.22fr) minmax(0, .9fr); }
.service-text { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.service-text > article { padding-bottom: 19px; border-bottom: 2px solid var(--line); }
.service-text p:last-child { margin-bottom: 0; }
.inline-advice { padding: 20px 26px; margin-top: 30px; background: var(--mint); color: var(--violet-deep); border-radius: 8px; }
.inline-advice p { margin: 0; }
@media (max-width: 1100px) {
    .header-inner { flex-wrap: wrap; padding-block: 16px; gap: 13px 24px; }
    .nav { margin-left: auto; }
    .phone { padding: 10px 17px; }
    .hero-layout { gap: 26px; grid-template-columns: minmax(0,1.18fr) minmax(0,.9fr); }
    .visual-panel { padding: 22px 16px; }
    .oven-scene { min-height: 310px; }
}
@media (max-width: 850px) {
    .wrap { width: min(720px, calc(100% - 36px)); }
    .header-inner { gap: 18px; }
    .nav { order: 3; width: 100%; justify-content: space-between; margin: 0; border-top: 1px solid var(--line); }
    .nav a { text-align: center; }
    .hero-layout, .intro-short .hero-layout { grid-template-columns: 1fr; }
    .hero { padding-block: 45px; }
    .visual-panel { max-width: 600px; width: 100%; margin-inline: auto; align-self: auto; border-radius: 70px 12px 12px 12px; }
    .oven-scene { min-height: 290px; }
    .oven-machine { height: 290px; }
    .oven-window { height: 175px; }
    .local-inner { grid-template-columns: 1fr; gap: 24px; }
    .cta-inner { align-items: flex-start; }
    .steps-track { gap: 10px; }
}
@media (max-width: 600px) {
    .ribbon-inner { font-size: 10px; letter-spacing: .03em; }
    .ribbon-inner span:last-child { display: none; }
    .logo-title { font-size: 21px; }
    .header-inner { gap: 16px 8px; }
    .phone { font-size: 13px; padding: 10px 14px; }
    .nav { gap: 10px; font-size: 13px; }
    h1 { font-size: 40px; }
    h2 { font-size: 28px; }
    .hero { padding-block: 36px 42px; }
    .hero-actions { flex-direction: column; }
    .primary-button, .text-button { width: 100%; }
    .section { padding-block: 52px; }
    .repair-row { grid-template-columns: 1fr; gap: 10px; padding-block: 22px; }
    .twinned, .steps-track, .service-text { grid-template-columns: 1fr; }
    .note { padding: 24px 23px; }
    .steps { padding-block: 52px; }
    .step { padding-block: 10px; }
    .local-names { padding: 23px 20px; }
    .cta-inner { flex-direction: column; }
    .cta .primary-button { width: auto; }
    .visual-panel { padding-inline: 15px; }
    .oven-scene { min-height: 295px; }
    .oven-machine { height: 280px; width: 245px; }
    .oven-window { height: 165px; }
    .satellite { right: 1%; top: 10%; width: 63px; height: 63px; }
}
@media (max-width: 380px) {
    .wrap { width: calc(100% - 28px); }
    .logo-title { font-size: 19px; }
    .logo-mark { width: 38px; height: 38px; }
    .phone { padding: 9px 11px; font-size: 12px; }
    .nav { font-size: 12px; }
    .oven-machine { width: 220px; }
    .satellite { width: 48px; height: 48px; border-width: 8px; }
    .satellite:after { inset: 10px; }
}
