:root {
    --yellow: #FFD600;
    --yellow-dark: #E6C200;
    --yellow-soft: #FFF7CC;
    --black: #111111;
    --gray-900: #1f2937;
    --gray-700: #374151;
    --gray-500: #6b7280;
    --gray-300: #d1d5db;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.06);
    --shadow: 0 6px 20px rgba(0,0,0,.08);
    --shadow-lg: 0 20px 40px rgba(0,0,0,.12);
    --radius: 12px;
    --radius-sm: 8px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--gray-900);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--gray-900); text-decoration: none; }
a:hover { color: var(--yellow-dark); }

h1, h2, h3, h4 { font-weight: 700; color: var(--black); margin: 0 0 .5em; line-height: 1.2; }
h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 2.5vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }

/* ============== Header ============== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--white);
    border-bottom: 3px solid var(--yellow);
    box-shadow: var(--shadow-sm);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .9rem 1.25rem;
    gap: 1rem;
}
.logo {
    display: flex;
    align-items: center;
    gap: .65rem;
    font-weight: 800;
    color: var(--black);
}
.logo-mark {
    background: var(--yellow);
    color: var(--black);
    width: 42px; height: 42px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.logo-drill { width: 72%; height: 72%; display: block; }
.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
    font-size: 1.05rem;
}
.logo-text small { font-weight: 500; color: var(--gray-500); font-size: .78rem; }

.main-nav { display: flex; gap: .25rem; }
.main-nav a {
    padding: .55rem .9rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    color: var(--gray-700);
    transition: all .15s ease;
}
.main-nav a:hover { background: var(--yellow-soft); color: var(--black); }
.main-nav a.active { background: var(--yellow); color: var(--black); font-weight: 600; }

.header-cta {
    background: var(--black);
    color: var(--yellow);
    padding: .65rem 1.1rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    transition: transform .15s ease;
}
.header-cta:hover { color: var(--yellow); transform: translateY(-1px); }

@media (max-width: 768px) {
    .main-nav { display: none; }
    .header-cta { padding: .55rem .8rem; font-size: .9rem; }
}

/* ============== Buttons ============== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .7rem 1.3rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all .15s ease;
    font-size: 1rem;
    text-decoration: none;
}
.btn-primary { background: var(--yellow); color: var(--black); border-color: var(--yellow); }
.btn-primary:hover { background: var(--yellow-dark); border-color: var(--yellow-dark); color: var(--black); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-dark { background: var(--black); color: var(--yellow); border-color: var(--black); }
.btn-dark:hover { background: #000; color: var(--yellow); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--black); border-color: var(--black); }
.btn-ghost:hover { background: var(--black); color: var(--yellow); }
.btn-block { width: 100%; }
.btn-lg { padding: .9rem 1.6rem; font-size: 1.05rem; }
.btn-sm { padding: .45rem .85rem; font-size: .88rem; }

/* ============== Hero ============== */
.hero {
    background:
        radial-gradient(circle at 80% 20%, var(--yellow-soft) 0%, transparent 50%),
        linear-gradient(135deg, #fffef5 0%, #ffffff 100%);
    padding: 4rem 0 5rem;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px; height: 500px;
    background: var(--yellow);
    border-radius: 50%;
    opacity: .12;
    filter: blur(40px);
}
.hero-inner {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
}
.eyebrow {
    display: inline-block;
    background: var(--black);
    color: var(--yellow);
    padding: .35rem .9rem;
    border-radius: 99px;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}
.hero-text h1 .accent {
    background: linear-gradient(180deg, transparent 60%, var(--yellow) 60%);
    padding: 0 .15em;
}
.lead { font-size: 1.15rem; color: var(--gray-700); margin: 1.2rem 0 1.8rem; max-width: 560px; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 2rem; }
.hero-perks { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; color: var(--gray-700); }
.hero-perks li { font-weight: 500; }

.hero-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border-top: 6px solid var(--yellow);
    text-align: center;
}
.hero-price { display: flex; align-items: baseline; justify-content: center; gap: .35rem; margin-bottom: 1rem; }
.hero-price span { color: var(--gray-500); font-size: .95rem; }
.hero-price strong { font-size: 3.5rem; font-weight: 800; color: var(--black); line-height: 1; }
.hero-price em { font-style: normal; color: var(--gray-500); font-size: 1rem; }
.hero-card p { color: var(--gray-700); margin-bottom: 1.5rem; }

@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero { padding: 3rem 0 3.5rem; }
}

/* ============== Sections ============== */
.section { padding: 4rem 0; }
.section-light { background: var(--gray-50); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }
.section-head p { color: var(--gray-500); font-size: 1.05rem; }

/* ============== Categories grid ============== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}
.category-card {
    background: var(--white);
    border: 2px solid var(--gray-100);
    padding: 1.4rem 1.5rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    color: var(--black);
    transition: all .2s ease;
}
.category-card:hover {
    border-color: var(--yellow);
    background: var(--yellow-soft);
    color: var(--black);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.category-arrow { color: var(--yellow-dark); font-weight: 700; transition: transform .2s ease; }
.category-card:hover .category-arrow { transform: translateX(4px); }

/* ============== Tools grid ============== */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.tool-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    transition: all .2s ease;
    display: flex;
    flex-direction: column;
}
.tool-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--yellow); }
.tool-card-media {
    background: linear-gradient(135deg, var(--yellow-soft) 0%, var(--yellow) 100%);
    aspect-ratio: 16 / 10;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tool-card-cat {
    position: absolute;
    top: .7rem; left: .7rem;
    background: var(--black);
    color: var(--yellow);
    font-size: .72rem;
    padding: .25rem .65rem;
    border-radius: 99px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.tool-card-icon { font-size: 4rem; opacity: .5; }
.tool-card-img { width: 100%; height: 100%; object-fit: contain; padding: .9rem; background: #fff; }
.tool-card-badge {
    position: absolute;
    top: .7rem; right: .7rem;
    background: #16a34a;
    color: #fff;
    font-size: .72rem;
    padding: .25rem .65rem;
    border-radius: 99px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.price-row-sale strong { color: #16a34a; }
.tool-card-body { padding: 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.tool-card-body h3 { font-size: 1.05rem; margin: 0; min-height: 2.5em; }
.tool-card-desc { color: var(--gray-500); font-size: .9rem; flex: 1; margin: 0; }
.tool-card-foot {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: .8rem; border-top: 1px solid var(--gray-100); margin-top: .4rem;
}
.tool-card-price strong { font-size: 1.4rem; color: var(--black); font-weight: 800; }
.tool-card-price span { color: var(--gray-500); font-size: .85rem; margin-left: .15rem; }

/* ============== Steps ============== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.step-card {
    background: var(--white);
    padding: 2rem 1.5rem;
    border-radius: var(--radius);
    border: 2px solid var(--gray-100);
    text-align: center;
    position: relative;
}
.step-num {
    width: 48px; height: 48px;
    background: var(--yellow);
    color: var(--black);
    font-size: 1.5rem;
    font-weight: 800;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.step-card h3 { font-size: 1.15rem; }
.step-card p { color: var(--gray-700); margin: 0; }

@media (max-width: 768px) { .steps-grid { grid-template-columns: 1fr; } }

/* ============== Service grid (servis page) ============== */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.2rem 0 2rem;
}
.service-card {
    background: var(--white);
    padding: 1.3rem 1.4rem;
    border-radius: var(--radius);
    border: 1px solid var(--gray-100);
    border-left: 4px solid var(--yellow);
}
.service-card .service-icon { font-size: 1.6rem; display: block; margin-bottom: .35rem; }
.service-card h3 { font-size: 1.05rem; margin: 0 0 .4rem; }
.service-card p { color: var(--gray-700); margin: 0 0 .6rem; line-height: 1.5; font-size: .92rem; }
.service-card .service-link {
    font-size: .88rem;
    color: var(--yellow-dark);
    font-weight: 600;
    text-decoration: none;
}
.service-card .service-link:hover { text-decoration: underline; }

.steps-list { padding-left: 1.2rem; line-height: 1.65; color: var(--gray-700); }
.steps-list li { margin-bottom: .4rem; }

@media (max-width: 1000px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .service-grid { grid-template-columns: 1fr; } }

/* ============== Info cards (FAQ-like) ============== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.info-card {
    background: var(--white);
    padding: 1.75rem 1.6rem;
    border-radius: var(--radius);
    border: 2px solid var(--gray-100);
    border-top: 4px solid var(--yellow);
}
.info-card .info-icon { font-size: 2rem; display: block; margin-bottom: .6rem; }
.info-card h3 { font-size: 1.1rem; margin: 0 0 .55rem; }
.info-card p { color: var(--gray-700); margin: 0; line-height: 1.55; }

@media (max-width: 900px) { .info-grid { grid-template-columns: 1fr; } }

/* ============== CTA band ============== */
.cta-band {
    background: var(--black);
    color: var(--white);
    padding: 3rem 0;
}
.cta-band-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}
.cta-band h2 { color: var(--yellow); margin-bottom: .25rem; }
.cta-band p { color: rgba(255,255,255,.8); margin: 0; }

/* ============== Page header ============== */
.page-header {
    background: linear-gradient(135deg, var(--yellow-soft) 0%, #fff 100%);
    padding: 3rem 0 2.5rem;
    border-bottom: 3px solid var(--yellow);
}
.page-header p { color: var(--gray-700); font-size: 1.1rem; margin: 0; max-width: 700px; }
.breadcrumb {
    font-size: .85rem;
    color: var(--gray-500);
    margin-bottom: .75rem;
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    align-items: center;
}
.breadcrumb a { color: var(--gray-500); text-decoration: none; }
.breadcrumb a:hover { color: var(--yellow-dark); text-decoration: underline; }
.breadcrumb-sep { color: var(--gray-300); }
.breadcrumb [aria-current="page"] { color: var(--gray-700); font-weight: 600; }

/* ============== Filter bar ============== */
.filter-bar {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
    background: var(--white);
    padding: 1.2rem;
    border: 2px solid var(--gray-100);
    border-radius: var(--radius);
    margin-bottom: 2rem;
}
.filter-group { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: .35rem; }
.filter-group label { font-weight: 600; font-size: .85rem; color: var(--gray-700); }
.filter-bar input, .filter-bar select {
    padding: .65rem .8rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    background: var(--white);
}
.filter-bar input:focus, .filter-bar select:focus {
    outline: none;
    border-color: var(--yellow);
    box-shadow: 0 0 0 3px var(--yellow-soft);
}

.empty-state { text-align: center; padding: 3rem 1rem; color: var(--gray-500); }
.empty-state .empty-icon { font-size: 3rem; display: block; margin-bottom: 1rem; }
.empty-state h2 { color: var(--gray-700, #374151); margin: 0 0 .75rem; }
.empty-state p { max-width: 38rem; margin: 0 auto; }
.form-note { font-size: .875rem; color: var(--gray-500); margin: .5rem 0 1rem; }

/* ============== Pagination ============== */
.pagination-wrap { margin-top: 2.5rem; display: flex; justify-content: center; }
.pager-list {
    display: flex;
    gap: .35rem;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}
.pager-item a, .pager-item span {
    display: inline-block;
    min-width: 2.5rem;
    text-align: center;
    padding: .55rem .85rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
    background: var(--white);
    text-decoration: none;
    font-weight: 500;
    line-height: 1;
}
.pager-item a:hover { background: var(--yellow-soft); border-color: var(--yellow); color: var(--black); }
.pager-item.active span { background: var(--yellow); border-color: var(--yellow); color: var(--black); font-weight: 700; }
.pager-item.disabled span { color: var(--gray-300); background: var(--gray-50); cursor: not-allowed; }

/* ============== Detail page ============== */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 2.5rem;
    align-items: start;
}
.detail-media {
    background: linear-gradient(135deg, var(--yellow-soft) 0%, var(--yellow) 100%);
    border-radius: var(--radius);
    aspect-ratio: 4 / 3;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.detail-icon { font-size: 8rem; opacity: .5; }
.detail-img { width: 100%; height: 100%; object-fit: contain; padding: 1.5rem; background: #fff; border-radius: var(--radius); }

.detail-gallery { display: flex; flex-direction: column; gap: .65rem; }
.detail-thumbs { display: flex; gap: .5rem; flex-wrap: wrap; }
.detail-thumb {
    width: 72px; height: 72px;
    padding: 0;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: #fff;
    cursor: pointer;
    overflow: hidden;
    transition: border-color .15s, transform .15s;
}
.detail-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.detail-thumb:hover { border-color: var(--yellow); }
.detail-thumb.is-active { border-color: var(--yellow); box-shadow: 0 0 0 2px var(--yellow-soft); }

.specs-heading { margin-top: 1.6rem; }
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin: .6rem 0 1.2rem;
    background: #fff;
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.specs-table th, .specs-table td {
    text-align: left;
    padding: .55rem .9rem;
    font-size: .92rem;
    border-bottom: 1px solid var(--gray-100);
    vertical-align: top;
}
.specs-table tr:last-child th, .specs-table tr:last-child td { border-bottom: 0; }
.specs-table th { color: var(--gray-500); font-weight: 500; width: 45%; background: var(--gray-50); }
.specs-table td { color: var(--gray-700); font-weight: 600; }

.price-table {
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: 1.2rem 1.4rem;
    margin: 1.5rem 0;
}
.price-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: .65rem 0;
    border-bottom: 1px dashed var(--gray-300);
}
.price-row:last-child { border-bottom: none; }
.price-row span { color: var(--gray-700); }
.price-row strong { font-size: 1.4rem; color: var(--black); font-weight: 800; }

.detail-cta { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.5rem 0; }

.detail-meta { color: var(--gray-700); font-size: .95rem; }
.badge {
    display: inline-block;
    padding: .15rem .65rem;
    border-radius: 99px;
    font-size: .8rem;
    font-weight: 600;
}
.badge-ok { background: #dcfce7; color: #166534; }
.badge-no { background: #fee2e2; color: #991b1b; }

@media (max-width: 800px) { .detail-grid { grid-template-columns: 1fr; } }

/* ============== About / narrow content ============== */
.narrow { max-width: 760px; margin: 0 auto; }
.check-list { list-style: none; padding: 0; }
.check-list li {
    padding: .5rem 0 .5rem 1.8rem;
    position: relative;
}
.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: .5rem;
    background: var(--yellow);
    color: var(--black);
    width: 22px; height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .75rem;
}
.cta-inline { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 2rem; }

/* ============== Contact ============== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 3rem;
    align-items: start;
}
.contact-info h3 { margin-top: 1.5rem; }
.phone-big { font-size: 1.6rem; font-weight: 800; color: var(--black); }
.phone-big:hover { color: var(--yellow-dark); }

.map-nav-btn { display: inline-flex; align-items: center; gap: .4rem; margin: .25rem 0 .75rem; }
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-top: .5rem; }
.map-embed iframe { width: 100%; height: 280px; border: 0; display: block; }

.contact-form-wrap {
    background: var(--gray-50);
    padding: 2rem;
    border-radius: var(--radius);
    border-top: 6px solid var(--yellow);
}
.contact-form .form-row { margin-bottom: 1rem; display: flex; flex-direction: column; gap: .35rem; }
.contact-form .form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form .form-row.two > div { display: flex; flex-direction: column; gap: .35rem; }
.contact-form label { font-weight: 600; font-size: .9rem; color: var(--gray-700); }
.contact-form input, .contact-form textarea {
    padding: .7rem .9rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    background: var(--white);
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--yellow);
    box-shadow: 0 0 0 3px var(--yellow-soft);
}
.form-err { color: #b91c1c; font-size: .85rem; }

.alert { padding: 1rem 1.2rem; border-radius: var(--radius-sm); margin-bottom: 1.2rem; }
.alert-success { background: #dcfce7; color: #166534; border-left: 4px solid #16a34a; }

@media (max-width: 800px) {
    .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
    .contact-form .form-row.two { grid-template-columns: 1fr; }
}

/* ============== Footer ============== */
.site-footer {
    background: var(--black);
    color: rgba(255,255,255,.85);
    margin-top: 3rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 3rem 1.25rem;
}
.footer-grid h3 { color: var(--yellow); font-size: 1rem; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: .5px; }
.footer-grid p { color: rgba(255,255,255,.7); font-size: .92rem; line-height: 1.7; }
.footer-grid a { color: var(--white); }
.footer-grid a:hover { color: var(--yellow); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 1.2rem 0;
    font-size: .85rem;
    color: rgba(255,255,255,.5);
}

@media (max-width: 800px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; padding: 2rem 1.25rem; }
}
@media (max-width: 500px) {
    .footer-grid { grid-template-columns: 1fr; }
}
