:root {
    --violet: #665caa;
    --violet-dark: #514e8b;
    --violet-soft: #eff0fc;
    --mint: #277d70;
    --mint-soft: #e5f5f1;
    --ink: #465575;
    --ink-soft: #61708b;
    --border: #d9dced;
    --paper: #ffffff;
    --surface: #fafaff;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--surface);
    font: 16px/1.68 "Segoe UI", system-ui, -apple-system, sans-serif;
    color: var(--ink);
    overflow-wrap: break-word;
}

a { color: inherit; text-decoration: none; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--mint); outline-offset: 4px; }
a, summary { -webkit-tap-highlight-color: transparent; }
p { margin: 0 0 17px; font-size: 16px; line-height: 1.72; }
h1, h2, h3 { margin: 0; color: var(--violet-dark); line-height: 1.2; text-wrap: pretty; }
h1 { font-size: 40px; letter-spacing: -1.15px; font-weight: 770; margin: 10px 0 24px; }
h2 { font-size: 28px; letter-spacing: -.55px; font-weight: 740; margin: 8px 0 22px; }
h3 { font-size: 21px; letter-spacing: -.25px; font-weight: 740; margin: 0 0 10px; }

.page-width { width: min(1160px, calc(100% - 80px)); margin: 0 auto; }
.caption { font-size: 12px; font-weight: 800; letter-spacing: 1.35px; color: var(--mint); text-transform: uppercase; }

.topbar { background: var(--paper); border-top: 5px solid var(--violet); border-bottom: 1px solid var(--border); position: relative; z-index: 5; }
.topbar-inner { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.logotype { display: inline-flex; align-items: center; gap: 12px; font-size: 24px; font-weight: 760; color: var(--violet-dark); letter-spacing: -.65px; white-space: nowrap; }
.logotype strong { color: var(--mint); }
.logo-sign { width: 42px; height: 42px; display: flex; gap: 4px; align-items: center; justify-content: center; border-radius: 6px; background: var(--violet); transform: rotate(5deg); flex-shrink: 0; }
.logo-sign span { width: 6px; height: 22px; background: #fff; border-radius: 2px; }
.logo-sign span:nth-child(1) { height: 13px; margin-top: 9px; }
.logo-sign span:nth-child(3) { height: 29px; background: #b9e4d8; }
.desktop-links { display: flex; gap: clamp(18px, 2.4vw, 32px); align-items: center; }
.desktop-links a { color: var(--ink); font-size: 14px; font-weight: 690; border-bottom: 2px solid transparent; padding: 14px 0; transition: color .15s ease, border-color .15s ease; }
.desktop-links a:hover, .desktop-links a[aria-current="page"] { color: var(--violet); border-color: var(--mint); }
.menu-toggle { display: none; }

.opening { background: #f1f1fc; padding: 36px 0 62px; border-bottom: 1px solid var(--border); }
.opening-label { display: flex; align-items: center; gap: 12px; color: var(--violet); font-size: 12px; font-weight: 800; letter-spacing: 1.4px; margin-bottom: 25px; }
.label-line { background: var(--mint); width: 25px; height: 4px; display: block; flex-shrink: 0; }
.label-end { margin-left: auto; color: #8686b6; }
.opening-layout { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(310px, .9fr); gap: clamp(34px, 5vw, 77px); align-items: center; }
.opening-text { min-width: 0; }
.opening-text h1 { margin-top: 0; }
.opening-text p { max-width: 730px; }

.action-set { display: flex; align-items: stretch; flex-wrap: wrap; gap: 12px; margin-top: 27px; }
.action { min-height: 51px; min-width: 174px; display: inline-flex; align-items: center; justify-content: center; padding: 11px 23px; font-weight: 770; font-size: 15px; line-height: 1.25; text-align: center; border: 2px solid transparent; border-radius: 4px; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.action:active { transform: translateY(1px); }
.action-main { background: var(--violet); color: #fff; border-color: var(--violet); }
.action-main:hover { background: #4e478c; border-color: #4e478c; }
.action-secondary { border-color: var(--mint); color: var(--mint); background: #fff; }
.action-secondary:hover { background: var(--mint); color: #fff; }

.workshop-slip { background: var(--paper); border: 1px solid #cbcde6; box-shadow: 11px 11px 0 #dedff6; min-height: 426px; display: flex; flex-direction: column; }
.slip-top { padding: 15px 19px; border-bottom: 1px dashed #b7b9d7; display: flex; justify-content: space-between; gap: 10px; font-size: 11px; font-weight: 800; letter-spacing: 1px; color: var(--violet); }
.slip-dots { color: var(--mint); font-size: 9px; letter-spacing: 3px; white-space: nowrap; }
.oven-drawing { flex: 1; min-height: 295px; background: repeating-linear-gradient(0deg, transparent 0 24px, #f1f2fa 24px 25px), #fbfbff; display: grid; place-items: center; position: relative; }
.oven-drawing::before { content: ""; position: absolute; width: 255px; height: 28px; border-radius: 50%; background: #e4e5f2; bottom: 19px; }
.oven-case { width: 170px; height: 225px; background: #eaf0fc; border: 7px solid #8f94c3; border-radius: 10px; position: relative; box-shadow: 10px 9px 0 #c5c8e3; transform: rotate(-3deg); }
.oven-controls { height: 42px; display: flex; align-items: center; justify-content: space-around; border-bottom: 6px solid #8f94c3; padding: 0 15px; }
.oven-controls span { width: 13px; height: 13px; background: #e7fbf4; border: 4px solid var(--violet); border-radius: 50%; }
.oven-controls span:nth-child(2) { background: var(--mint); border-color: var(--mint); }
.oven-window { position: absolute; top: 59px; bottom: 17px; left: 13px; right: 13px; border: 11px solid #a5a9d3; background: #7c89c0; display: grid; place-items: center; border-radius: 6px; }
.oven-coil { width: 87px; height: 87px; border: 8px solid #b5e2d9; border-radius: 50%; display: grid; place-items: center; position: relative; }
.oven-coil span:first-child { width: 45px; height: 45px; border: 7px solid #5bc1a9; border-radius: 50%; }
.oven-coil span:last-child { position: absolute; height: 14px; width: 14px; background: #d5e9f9; border-radius: 50%; }
.oven-feet { position: absolute; left: 10px; right: 10px; bottom: -15px; display: flex; justify-content: space-between; }
.oven-feet span { background: #7f84b8; width: 22px; height: 9px; border-radius: 0 0 3px 3px; }
.slip-bottom { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px dashed #b7b9d7; }
.slip-bottom div { padding: 13px 17px; }
.slip-bottom div + div { border-left: 1px solid var(--border); }
.slip-bottom span { display: block; color: #7380a4; font-size: 10px; font-weight: 780; letter-spacing: 1.1px; }
.slip-bottom strong { font-size: 17px; display: block; color: var(--violet-dark); margin-top: 3px; }

.place-panel { background: #e6f4f0; padding: 39px 0 42px; border-bottom: 1px solid #c7e0d8; }
.panel-heading h2 { margin-bottom: 18px; }
.place-body { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.place-body p { margin: 0; }
.place-body strong { color: #227e70; }

.editorial-section { padding: 69px 0; }
.chapter-head { display: flex; align-items: flex-start; gap: 22px; margin-bottom: 30px; }
.chapter-head > span { font-size: 18px; font-weight: 800; color: var(--mint); border-top: 4px solid var(--mint); min-width: 54px; padding-top: 8px; }
.chapter-head h2 { margin-bottom: 0; }
.equipment-list { border-top: 1px solid var(--border); }
.equipment-item { padding: 23px 0 22px; border-bottom: 1px solid var(--border); position: relative; }
.equipment-item::before { content: ""; width: 6px; height: 6px; background: var(--mint); border-radius: 50%; position: absolute; left: -18px; top: 33px; }
.equipment-item p { max-width: 1050px; margin: 0; }
.future-link { color: inherit; text-decoration: none; }
.future-link:hover { color: var(--violet); }

.symptom-ledger { background: var(--violet-soft); border-block: 1px solid var(--border); }
.ledger-body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px; }
.ledger-row { padding-top: 21px; border-top: 4px solid #ada8d8; }
.ledger-row h3 { min-height: 52px; }
.ledger-row p { margin-bottom: 0; }
.payment-layout { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(260px, .82fr); align-items: center; gap: clamp(42px, 5.5vw, 90px); }
.payment-layout p:last-child { margin-bottom: 0; }
.cost-ticket { padding: 31px 29px; border: 2px solid var(--violet); background: #fff; position: relative; }
.cost-ticket::before, .cost-ticket::after { content: ""; position: absolute; border-radius: 50%; width: 23px; height: 23px; background: var(--surface); top: 57%; border: 1px solid var(--violet); }
.cost-ticket::before { left: -13px; }
.cost-ticket::after { right: -13px; }
.ticket-top { display: block; color: var(--mint); font-weight: 820; letter-spacing: 1.4px; font-size: 12px; }
.cost-ticket strong { display: block; color: var(--violet); font-size: 36px; letter-spacing: -.9px; margin: 13px 0 20px; line-height: 1.2; }
.ticket-perforation { border-top: 2px dashed #b8b5d8; margin: 0 0 19px; }
.cost-ticket p { margin: 0; }

.schedule-section { background: #e8f5f1; padding: 48px 0; }
.schedule-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(330px, .9fr); gap: 70px; align-items: center; }
.schedule-layout p { margin-bottom: 0; }
.schedule-list { margin: 0; border-top: 1px solid #b5dacf; }
.schedule-list > div { display: flex; align-items: baseline; justify-content: space-between; padding: 11px 0; gap: 16px; border-bottom: 1px solid #b5dacf; }
.schedule-list dt { font-size: 15px; }
.schedule-list dd { margin: 0; white-space: nowrap; color: #267d70; font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; }

.end-contact { background: var(--violet); color: #fff; padding: 40px 0; }
.end-layout { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.end-contact h2 { color: #fff; margin-bottom: 0; }
.end-contact .caption { color: #b6f1e3; }
.end-contact .action-set { margin-top: 0; }
.action-inverse { background: #fff; color: var(--violet-dark); border-color: #fff; }
.action-inverse:hover { background: #e4e3f5; border-color: #e4e3f5; }
.action-inverse-line { border-color: #c4e5dd; color: #fff; }
.action-inverse-line:hover { background: #837ac0; }
.bottom-bar { background: #fafaff; border-top: 1px solid var(--border); padding: 25px 0; font-size: 13px; color: #6c7490; }
.bottom-layout { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.divider-dot { color: var(--mint); font-weight: 900; padding: 0 6px; }
.bottom-bar nav { display: flex; flex-wrap: wrap; gap: 25px; }
.bottom-bar nav a:hover { color: var(--violet); }
.quiet-link { font-size: 12px; }

.repair-opening { background: linear-gradient(165deg, #f0f0fb, #e8f6f2); padding: 62px 0 59px; border-bottom: 1px solid var(--border); }
.repair-opening-inner { border-left: 6px solid var(--mint); padding-left: 35px; max-width: 1010px; }
.repair-opening h1 { max-width: 1000px; }
.repair-opening p { max-width: 830px; }
.repair-cases { padding: 52px 0 56px; }
.case-alt { background: #f0f0fb; border-block: 1px solid var(--border); }
.case-lead { border-bottom: 2px solid var(--mint); padding-bottom: 5px; margin-bottom: 22px; }
.case-lead h2 { margin-top: 6px; margin-bottom: 17px; }
.case-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.case-copy p { margin: 0; }
.repair-visit { background: #e9f5f2; padding: 65px 0; border-block: 1px solid #cde3dc; }
.visit-inner { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(260px, .8fr); gap: 60px; align-items: center; }
.visit-note { border-left: 5px solid var(--mint); background: #fff; padding: 26px 26px 23px; }
.visit-note span { font-size: 12px; font-weight: 800; letter-spacing: 1.3px; color: var(--mint); }
.visit-note strong { display: block; font-size: 29px; color: var(--violet); line-height: 1.25; margin: 13px 0; font-variant-numeric: tabular-nums; }
.visit-note p { margin: 0; }
.repair-contact { padding: 69px 0 75px; }
.repair-contact p { max-width: 910px; }

.service-masthead { padding: 58px 0 55px; background: var(--violet-soft); border-bottom: 1px solid var(--border); }
.service-masthead-inner { max-width: 970px; }
.service-masthead h1 { border-bottom: 4px solid var(--mint); display: table; padding-bottom: 19px; margin-bottom: 22px; }
.service-masthead p { max-width: 840px; }
.services-register { padding: 68px 0 63px; }
.register-head h2 { margin-bottom: 30px; }
.register-entry { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 22px; border-top: 1px solid var(--border); padding: 24px 0; }
.register-entry:last-child { border-bottom: 1px solid var(--border); }
.register-entry p { margin: 0; }
.register-code { color: var(--mint); font-weight: 810; font-size: 13px; white-space: nowrap; padding-top: 5px; }
.service-conditions { background: #e7f4f0; border-block: 1px solid #cde3dc; padding: 63px 0; }
.conditions-inner { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(255px, .8fr); gap: 60px; align-items: center; }
.condition-stamp { padding: 30px; background: #fff; border-top: 6px solid var(--violet); box-shadow: 7px 7px 0 #cae6dc; }
.condition-stamp span { font-size: 12px; letter-spacing: 1.2px; font-weight: 800; color: var(--mint); }
.condition-stamp strong { display: block; font-size: 34px; color: var(--violet); margin: 12px 0; line-height: 1.15; }
.condition-stamp p { margin: 0; }
.service-visit { padding: 66px 0; }
.service-visit p { max-width: 960px; }

@media (max-width: 1060px) {
    .page-width { width: calc(100% - 56px); }
    .opening-layout { grid-template-columns: minmax(0, 1.55fr) minmax(280px, .82fr); gap: 32px; }
    .workshop-slip { min-height: 375px; box-shadow: 7px 7px 0 #dedff6; }
    .oven-drawing { min-height: 242px; }
    .ledger-body { display: block; }
    .ledger-row { margin-bottom: 25px; padding-top: 16px; }
    .ledger-row:last-child { margin-bottom: 0; }
    .ledger-row h3 { min-height: 0; }
    .schedule-layout, .conditions-inner { gap: 35px; }
}

@media (max-width: 900px) {
    .opening-layout { display: block; }
    .workshop-slip { margin-top: 29px; min-height: 0; box-shadow: none; }
    .oven-drawing { display: none; }
    .slip-bottom { width: 100%; }
    .place-body { gap: 25px; }
    .ledger-body { display: block; }
    .ledger-row { margin-bottom: 25px; padding-top: 16px; }
    .ledger-row:last-child { margin-bottom: 0; }
    .ledger-row h3 { min-height: 0; }
    .schedule-layout { display: block; }
    .schedule-list { margin-top: 21px; }
    .payment-layout, .visit-inner, .conditions-inner { grid-template-columns: minmax(0, 1fr) minmax(240px, .75fr); gap: 28px; }
}

@media (max-width: 780px) {
    .desktop-links { display: none; }
    .topbar-inner { min-height: 71px; }
    .menu-toggle { display: block; position: relative; }
    .menu-toggle summary { list-style: none; display: flex; gap: 10px; align-items: center; cursor: pointer; border: 1px solid var(--border); border-radius: 4px; background: #fff; font-weight: 730; font-size: 14px; padding: 9px 11px; }
    .menu-toggle summary::-webkit-details-marker { display: none; }
    .toggle-lines, .toggle-lines::before, .toggle-lines::after { width: 17px; height: 2px; border-radius: 2px; position: relative; display: block; background: var(--violet); content: ""; }
    .toggle-lines::before { top: -5px; }
    .toggle-lines::after { top: 3px; }
    .menu-toggle nav { position: absolute; right: 0; top: calc(100% + 8px); z-index: 8; min-width: min(255px, calc(100vw - 38px)); background: #fff; border: 1px solid var(--border); box-shadow: 0 11px 26px rgba(92, 84, 153, .17); padding: 8px; display: flex; flex-direction: column; border-radius: 5px; }
    .menu-toggle nav a { display: block; font-weight: 680; padding: 11px; border-radius: 4px; }
    .menu-toggle nav a:hover, .menu-toggle nav a[aria-current="page"] { color: var(--violet); background: var(--violet-soft); }
    .place-body, .case-copy { display: block; }
    .place-body p + p, .case-copy p + p { margin-top: 14px; }
    .payment-layout, .visit-inner, .conditions-inner { display: block; }
    .cost-ticket, .visit-note, .condition-stamp { margin-top: 23px; }
    .end-layout { display: block; }
    .end-layout .action-set { margin-top: 23px; }
    .bottom-layout { display: block; }
    .bottom-bar nav { margin-top: 14px; }
}

@media (max-width: 520px) {
    .page-width { width: calc(100% - 38px); }
    .logotype { font-size: 20px; gap: 9px; }
    .logo-sign { width: 34px; height: 34px; }
    .logo-sign span { width: 5px; }
    .topbar-inner { gap: 10px; }
    h1 { font-size: 40px; letter-spacing: -1.1px; overflow-wrap: anywhere; }
    h2 { font-size: 28px; }
    p { font-size: 16px; }
    .opening { padding: 27px 0 45px; }
    .opening-label { font-size: 10px; letter-spacing: .85px; gap: 7px; }
    .label-end { display: none; }
    .opening-text h1 { margin-top: 4px; }
    .action-set { flex-direction: column; align-items: stretch; width: 100%; }
    .action { width: 100%; min-width: 0; }
    .place-panel { padding: 33px 0; }
    .editorial-section, .services-register, .service-visit { padding: 50px 0; }
    .chapter-head { gap: 12px; margin-bottom: 23px; }
    .chapter-head > span { min-width: 35px; font-size: 15px; }
    .equipment-item::before { display: none; }
    .schedule-section { padding: 40px 0; }
    .schedule-list > div { gap: 10px; }
    .schedule-list dt { font-size: 14px; }
    .schedule-list dd { font-size: 14px; }
    .end-contact { padding: 37px 0; }
    .repair-opening { padding: 43px 0 46px; }
    .repair-opening-inner { border-left-width: 4px; padding-left: 17px; }
    .repair-cases { padding: 43px 0; }
    .repair-visit { padding: 49px 0; }
    .repair-contact { padding: 54px 0 58px; }
    .service-masthead { padding: 44px 0; }
    .register-entry { grid-template-columns: 1fr; gap: 5px; padding: 21px 0; }
    .service-conditions { padding: 49px 0; }
}

@media (max-width: 340px) {
    .page-width { width: calc(100% - 28px); }
    .logotype { font-size: 18px; }
    .menu-toggle summary { padding: 8px; }
}
