:root {
    --dark: #0c251f;
    --green: #13362c;
    --paper: #f2f4f2;
    --accent: #ffbf29;
    color: #10261e;
    background: var(--paper);
    font: 100%/1.5 Arial, sans-serif;
}
* { box-sizing: border-box; }
body, figure { margin: 0; }
h1, h2, h3, p { margin: 0 0 .65em; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #2b8fd0; outline-offset: 4px; }
img { display: block; }
.wrap { width: min(94%, 1320px); margin-inline: auto; }
.section { padding-block: clamp(1.9rem, 4vw, 3.3rem); }
.dark { color: white; background: var(--dark); }
.header, .header nav, .actions, .hero-details, .cities { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; }
.header { justify-content: space-between; padding-block: .65rem; }
header .header { column-gap: .65rem; }
header nav { column-gap: .75rem; font-size: .92rem; }
header .brand { font-size: clamp(1.1rem, 2vw, 1.5rem); }
header .button { padding-inline: .8rem; font-size: .92rem; }
.header a { text-decoration: none; }
.header a:not(.button):hover { text-decoration: underline; }
.brand { display: inline-flex; align-items: center; gap: .38rem; font-size: 1.5rem; font-weight: 800; }
.brand img { object-fit: contain; }
.phone { font-weight: 800; }
.button {
    display: inline-block;
    border: 2px solid transparent;
    border-radius: .5rem;
    background: var(--accent);
    color: #181e0e;
    padding: .72rem 1.12rem;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}
.button:hover { background: #ffcf5a; }
.button.secondary { color: white; border-color: white; background: #10251f70; }
.button.secondary:hover { background: var(--green); }
.hero { background: linear-gradient(90deg, #0b211ff7 0%, #0b211fe6 32%, #0b211f60 68%, #0b211f27), url('yard.jpg') center 52% / cover; }
.hero .wrap { padding-block: clamp(3rem, 7vw, 6.5rem) 1.8rem; }
h1 { max-width: 22ch; font-size: clamp(2.25rem, 5.3vw, 4.75rem); line-height: 1.01; letter-spacing: -.045em; overflow-wrap: anywhere; }
h1 span { display: block; color: var(--accent); }
.hero p { max-width: 34ch; padding-left: 1rem; border-left: 3px solid var(--accent); font-size: clamp(1rem, 2vw, 1.25rem); }
.hero-details { list-style: none; padding: 0; margin: clamp(2rem, 6vw, 4.5rem) 0 0; font-weight: 700; }
.hero-details li { background: #0c251fdb; border-left: 3px solid var(--accent); padding: .4rem .65rem; }
h2 { display: flex; gap: .6rem; align-items: flex-start; font-size: clamp(1.6rem, 3vw, 2.35rem); line-height: 1.12; letter-spacing: -.035em; }
h2::before { content: ''; flex: 0 0 .33em; height: .84em; background: var(--accent); margin: .14em .15em 0 .16em; transform: skew(-22deg); }
h3 { font-size: 1.1rem; }
.section-heading { display: flex; gap: .5rem 1.5rem; justify-content: space-between; flex-wrap: wrap; align-items: baseline; }
.cities { margin-bottom: 1rem; }
.cities a { background: #e0ebe4; border-radius: .4rem; padding: .3rem .65rem; }
.cities [aria-current] { font-weight: 800; }
.price-group + .price-group { margin-top: 2rem; }
.price-group-banner {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    min-height: clamp(150px, 22vw, 235px);
    margin-bottom: .85rem;
    padding: 1.25rem;
    overflow: hidden;
    border-radius: .75rem;
    background: #0c211e;
}
.price-group-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.price-group-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(9, 24, 22, .82), rgba(9, 24, 22, .42));
    z-index: -1;
}
.price-group-banner h3 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.75rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.12;
    text-align: center;
    text-wrap: balance;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .75);
}
.price-group-banner h3::after {
    content: '';
    display: block;
    width: 3rem;
    height: .24rem;
    margin: .7rem auto 0;
    border-radius: 1rem;
    background: var(--accent);
}
.price-grid, .gallery, .advantages { display: grid; gap: .85rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 165px), 1fr)); }
.price-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    padding: 0 .35rem .85rem;
    border-radius: .65rem;
    overflow: hidden;
    background: #0c211e;
    color: white;
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;
}
.price-card-image {
    flex: none;
    width: calc(100% + .7rem);
    height: auto;
    aspect-ratio: 1;
    background: #e7e8e9;
    object-fit: cover;
}
#cable-scrap .price-card-image { object-fit: contain; }
.price-card strong {
    width: 100%;
    margin-top: .4rem;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.3;
    hyphens: auto;
    text-wrap: balance;
}
.price-card:hover strong { text-decoration: underline; }
.price-card span { margin-top: auto; font-weight: 800; background: var(--accent); color: #181e0e; padding: .28rem .55rem; border-radius: .4rem; }
.price-card small { color: #dde6e1; }
.advantages { gap: 1.5rem; }
.advantages > div { padding-left: 1rem; border-left: 1px solid #81988b; }
.advantages p { color: #e1e9e3; }
.gallery { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.gallery figure, .panel { border: 1px solid #d7e0da; border-radius: .7rem; background: white; overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
#gallery h3 { margin: 1.4rem 0 .75rem; }
.material-gallery { grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); }
.gallery-photo {
    display: block;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: .65rem;
    background: #e7e8e9;
    cursor: zoom-in;
}
.gallery-photo img { display: block; object-fit: cover; }
.photo-watermark { position: relative; }
.photo-watermark::after {
    content: '';
    position: absolute;
    inset: auto .65rem .65rem auto;
    width: clamp(34px, 18%, 62px);
    aspect-ratio: 1;
    border-radius: .55rem;
    background: rgba(12, 33, 30, .72) url('logo.png') center / 80% no-repeat;
    pointer-events: none;
}
#gallery-viewer {
    width: fit-content;
    max-width: min(94vw, 75rem);
    max-height: 94vh;
    padding: .6rem;
    border: 0;
    border-radius: .75rem;
    background: var(--dark);
}
#gallery-viewer::backdrop { background: rgba(0, 0, 0, .82); }
#gallery-viewer form { margin-bottom: .5rem; text-align: right; }
.gallery-enlarged img { display: block; max-width: 100%; max-height: calc(90vh - 3.5rem); object-fit: contain; }
figcaption { padding: .65rem .8rem; font-weight: 800; }
.panel { padding: clamp(1rem, 3vw, 2rem); }
.selected { margin-bottom: 1rem; }
.calculator, .contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(1rem, 4vw, 3rem); align-items: start; }
.locations { display: block; border-radius: .75rem; overflow: hidden; }
.location-list { padding: clamp(1rem, 3vw, 2rem); }
.pickup-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.pickup-grid li {
    display: grid;
    grid-row: span 3;
    grid-template-rows: subgrid;
    gap: .5rem;
    padding: .85rem;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: .55rem;
}
.pickup-grid strong { color: var(--accent); }
.pickup-address { display: grid; align-content: start; gap: .2rem; color: #e1e9e3; }
.pickup-actions { display: flex; flex-wrap: wrap; align-content: start; gap: .25rem .75rem; }
.pickup-actions a { text-underline-offset: .18em; }
.pickup-route { flex-basis: 100%; }
@media (max-width: 560px) {
    .pickup-grid { grid-template-columns: minmax(0, 1fr); }
}
.location-map iframe { display: block; width: 100%; height: clamp(260px, 40vw, 420px); border: 0; }
label { display: block; margin: 0 0 .3rem; font-weight: 700; }
input, select, textarea { width: 100%; min-width: 0; border: 1px solid #96a89c; border-radius: .4rem; padding: .65rem .7rem; font: inherit; color: #10261e; background: white; }
.calculator input, .calculator select { margin-bottom: .75rem; }
#estimate { font-weight: 700; }
.faq details { padding: .75rem 0; border-bottom: 1px solid #cbd9d0; }
summary { font-weight: 700; cursor: pointer; }
.faq details p { margin: .6rem 0 0; }
.chart { display: block; width: min(100%, 600px); height: auto; color: #287056; margin-block: 1rem; }
.history li { padding-bottom: .25rem; }
.history strong { margin-left: .4rem; }
.contact { background: linear-gradient(105deg, #0c251ff2, #0c251feb), url('scrap.jpg') center / cover; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .75rem; margin-bottom: .9rem; }
.fields .wide { grid-column: 1 / -1; }
.fields textarea { resize: vertical; }
.message { border-left: 4px solid var(--accent); background: #234a3d; padding: .65rem; }
.errorlist { color: #ffcdca; padding-left: 1.2rem; }
footer { border-top: 1px solid #506b61; }
.footer-contacts { display: grid; font-weight: 700; gap: .2rem; }
@media (max-width: 900px) {
    header nav { order: 1; width: 100%; gap: .55rem 1rem; }
}
@media (max-width: 720px) {
    .wrap { width: min(91%, 1320px); }

    header .header > .button { display: none; }
    .hero { background-image: linear-gradient(90deg, #0b211ff2, #0b211f85), url('yard.jpg'); }
    .calculator, .contact-grid { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 420px) { .fields { grid-template-columns: minmax(0,1fr); } }
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
    .button, .price-card { transition: background-color .18s, transform .18s; }
    .price-card:hover { transform: translateY(-3px); }
}

.privacy-policy { max-width: 52rem; margin-inline: auto; }
.privacy-policy h1 { font-size: clamp(1.8rem, 4vw, 2.75rem); line-height: 1.15; }
.privacy-policy h2 { margin-top: 1.6rem; font-size: 1.3rem; }
.form-privacy { margin-block: .85rem; }
.form-privacy a { text-decoration: underline; }

.reviews-widget { display: block; width: 100%; max-width: 43rem; height: 550px; margin-block: .75rem; border: 1px solid #d7e0da; border-radius: .7rem; background: white; }

.cookie-notice {
    position: fixed;
    inset: auto 1rem 1rem;
    z-index: 10;
    max-width: 52rem;
    max-height: calc(100dvh - 2rem);
    margin-inline: auto;
    padding: 1rem 1.25rem;
    overflow: auto;
    border: 1px solid #81988b;
    border-radius: .75rem;
    background: var(--dark);
    color: white;
    box-shadow: 0 8px 25px #0005;
}
.cookie-notice p { margin: 0 0 .75rem; }
.cookie-notice a { text-decoration: underline; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-settings { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }

.video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 720px) {
    .video-grid { grid-template-columns: minmax(0, 1fr); }
}
.video-card { min-width: 0; overflow: hidden; border: 1px solid #d7e0da; border-radius: .75rem; background: white; }
.video-player { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: 0; background: #0c211e; }
.video-caption { display: grid; gap: .4rem; padding: .85rem 1rem; }
.video-caption h3 { margin: 0; }
.video-caption small { color: #465b55; }
