:root {
    --bg: #062f35;
    --bg-dark: #031f25;
    --panel: #073b42;
    --panel-soft: #0b4c54;
    --text: #f7fbfb;
    --muted: #b9d1d3;
    --gold: #d99a3a;
    --gold-dark: #b87922;
    --line: rgba(255, 255, 255, 0.16);
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
    --radius: 18px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--bg-dark);
    line-height: 1.5;
}

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

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(3, 31, 37, 0.88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand img,
.footer-brand img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.brand strong,
.footer-brand strong {
    display: block;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 25px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.brand small,
.footer-brand small {
    display: block;
    color: var(--gold);
    font-size: 12px;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    font-size: 14px;
}

.main-nav a {
    color: var(--muted);
    padding: 29px 0;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text);
    border-bottom-color: var(--gold);
}

.header-actions a {
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 14px;
}

/* Hero */

.hero {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    background-image:
        linear-gradient(
            90deg,
            rgba(3, 31, 37, 0.96) 0%,
            rgba(3, 31, 37, 0.76) 42%,
            rgba(3, 31, 37, 0.32) 100%
        ),
        url('../img/hero-leviathan.png');
    background-repeat: no-repeat, no-repeat;
    background-size: 100% 100%, cover;
    background-position: 0 0, center -80px;
}

.hero::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 220px;
    background: linear-gradient(to bottom, rgba(3, 31, 37, 0), #03282e);
}

.hero-inner {
    position: relative;
    z-index: 2;
    min-height: 640px;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 560px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-size: 12px;
    font-weight: 700;
}

h1,
h2,
h3 {
    margin-top: 0;
    line-height: 1.08;
}

h1,
h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 500;
}

.hero h1 {
    margin-bottom: 20px;
    font-size: clamp(44px, 6vw, 76px);
}

.hero h1 em {
    display: block;
    color: var(--gold);
    font-style: italic;
}

.hero p {
    max-width: 430px;
    color: var(--muted);
    font-size: 17px;
}

.button-row,
.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.btn-primary {
    background: linear-gradient(180deg, var(--gold), var(--gold-dark));
    color: #fff;
}

.btn-outline {
    border: 1px solid rgba(217, 154, 58, 0.8);
    color: var(--text);
    background: rgba(0, 0, 0, 0.12);
}

/* Sections */

.section {
    padding: 72px 0;
    background: var(--bg-dark);
}

.section-dark {
    position: relative;
    z-index: 3;
    padding-top: 34px;
    background: #03282e;
}

.section-heading {
    text-align: center;
    margin-bottom: 34px;
}

.section-heading h2 {
    display: inline-block;
    position: relative;
    margin-bottom: 0;
    font-size: 30px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-heading h2::after {
    content: '';
    display: block;
    width: 70px;
    height: 2px;
    margin: 14px auto 0;
    background: var(--gold);
}

/* Product Cards */

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    align-items: stretch;
}

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(217, 154, 58, 0.36);
    border-radius: 14px;
    background: #063940;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(217, 154, 58, 0.78);
}

.product-card > a {
    display: block;
    background: #052d34;
}

.product-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.product-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 18px;
}

.product-card h3 {
    min-height: 44px;
    margin-bottom: 7px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 22px;
}

.product-card p {
    min-height: 42px;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 14px;
    font-style: italic;
}

.product-card strong {
    display: block;
    margin-top: auto;
    margin-bottom: 14px;
    color: var(--text);
    font-size: 18px;
}

.small-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 40px;
    padding: 9px 12px;
    border: 1px solid rgba(217, 154, 58, 0.64);
    border-radius: 6px;
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.small-btn:hover {
    background: rgba(217, 154, 58, 0.12);
}

.tag {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 8px;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(217, 154, 58, 0.16);
    color: var(--gold);
    font-size: 11px;
    text-transform: uppercase;
}

/* Trust Section */

.trust-section {
    padding: 0 0 72px;
    background: #03282e;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, #0b4d55, #073941);
    box-shadow: var(--shadow);
}

.trust-item {
    padding: 28px;
    border-right: 1px solid var(--line);
}

.trust-item:last-child {
    border-right: 0;
}

.trust-title-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.trust-icon {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.trust-grid h3 {
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 22px;
    line-height: 1.05;
}

.trust-grid p {
    margin: 0 0 0 62px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

/* Inner Page Hero */

.page-hero {
    padding: 90px 0;
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(90deg, rgba(3, 31, 37, 0.94), rgba(3, 31, 37, 0.62)),
        url('../img/hero-leviathan.png') center -80px / cover no-repeat;
}

.page-hero h1 {
    margin-bottom: 16px;
    font-size: clamp(42px, 6vw, 68px);
}

.page-hero p {
    max-width: 620px;
    color: var(--muted);
    font-size: 17px;
}

/* Catalogue Page */

.catalogue-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
}

.filters {
    align-self: start;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
}

.filters h3 {
    font-family: Georgia, 'Times New Roman', serif;
}

.filters a {
    display: block;
    padding: 11px 0;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
}

.filters a.active,
.filters a:hover {
    color: var(--gold);
}

.catalogue-top {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.catalogue-top h2 {
    margin-bottom: 0;
    font-size: 28px;
}

.catalogue-top p {
    margin: 0;
    color: var(--muted);
}

.delivery-note {
    padding: 12px 16px;
    border: 1px solid rgba(217, 154, 58, 0.36);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(217, 154, 58, 0.08);
    font-size: 14px;
}

.delivery-note strong {
    color: var(--text);
}

/* Product Detail Page */

.product-detail {
    padding: 80px 0;
    background:
        radial-gradient(circle at top right, rgba(217, 154, 58, 0.12), transparent 34%),
        var(--bg-dark);
}

.product-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 520px);
    gap: 44px;
    align-items: start;
}

.product-detail-image {
    overflow: hidden;
    border: 1px solid rgba(217, 154, 58, 0.36);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.product-detail-image img {
    width: 100%;
    height: 520px;
    object-fit: cover;
}

.product-detail-content h1 {
    margin-bottom: 8px;
    font-size: clamp(38px, 5vw, 64px);
}

.species {
    color: var(--gold);
    font-style: italic;
}

.product-price {
    margin: 24px 0;
    font-size: 32px;
    font-weight: 700;
}

.care-table {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 32px;
}

.care-table div {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
}

.care-table span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 13px;
}

.care-table strong {
    font-size: 15px;
}

.add-to-basket {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 16px;
    margin-top: 28px;
}

.add-to-basket label {
    display: block;
    color: var(--muted);
    font-size: 14px;
}

.add-to-basket input {
    display: block;
    width: 110px;
    margin-top: 8px;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #03282e;
    color: var(--text);
    font: inherit;
}

.delivery-small {
    margin-top: 18px;
    color: var(--muted);
    font-size: 14px;
}

.stock-empty {
    display: inline-flex;
    justify-content: center;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(185, 209, 211, 0.22);
    border-radius: 6px;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.stock-empty.large {
    width: auto;
    margin-top: 24px;
    padding: 13px 18px;
}

/* Contact Page */

.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 32px;
}

.contact-card,
.contact-form {
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.contact-card h2,
.contact-form h2 {
    font-size: 30px;
}

.contact-line {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.contact-line:last-child {
    border-bottom: 0;
}

.contact-line p {
    margin: 5px 0 0;
    color: var(--muted);
}

.contact-form label {
    display: block;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 14px;
}

.contact-form input,
.contact-form textarea {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #03282e;
    color: var(--text);
    font: inherit;
}

.contact-form textarea {
    resize: vertical;
}

/* Footer */

.site-footer {
    padding: 54px 0 22px;
    background: #052d34;
    border-top: 1px solid var(--line);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 42px;
}

.footer-grid p {
    color: var(--muted);
}

.footer-grid h4 {
    margin: 0 0 14px;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-grid a:not(.footer-brand) {
    display: block;
    margin-bottom: 9px;
    color: var(--muted);
}

.footer-bottom {
    margin-top: 34px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
}

/* Tablet */

@media (max-width: 1050px) {
    .main-nav {
        display: none;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .trust-item:nth-child(2) {
        border-right: 0;
    }

    .trust-item:nth-child(1),
    .trust-item:nth-child(2) {
        border-bottom: 1px solid var(--line);
    }

    .footer-grid,
    .contact-grid,
    .product-detail-grid,
    .catalogue-layout {
        grid-template-columns: 1fr;
    }
}

/* Mobile */

@media (max-width: 640px) {
    .container {
        width: min(100% - 28px, var(--container));
    }

    .header-inner {
        min-height: auto;
        padding: 14px 0 16px;
        display: block;
    }

    .brand {
        justify-content: center;
        width: 100%;
    }

    .brand img {
        width: 46px;
        height: 46px;
    }

    .brand strong {
        font-size: 18px;
    }

    .brand small {
        font-size: 9px;
    }

    .main-nav {
        display: flex;
        justify-content: center;
        gap: 18px;
        margin-top: 14px;
        font-size: 13px;
    }

    .main-nav a {
        padding: 8px 0;
    }

    .header-actions {
        display: none;
    }

    .hero,
    .hero-inner {
        min-height: 760px;
    }

    .hero {
        background-image:
            linear-gradient(
                90deg,
                rgba(3, 31, 37, 0.98) 0%,
                rgba(3, 31, 37, 0.95) 42%,
                rgba(3, 31, 37, 0.72) 100%
            ),
            linear-gradient(
                180deg,
                rgba(3, 31, 37, 0.18) 0%,
                rgba(3, 31, 37, 0.82) 72%,
                #03282e 100%
            ),
            url('../img/hero-leviathan.png');
        background-repeat: no-repeat, no-repeat, no-repeat;
        background-size: 100% 100%, 100% 100%, auto 82%;
        background-position: 0 0, 0 0, 88% 0;
    }

    .hero::after {
        height: 180px;
        background: linear-gradient(to bottom, rgba(3, 31, 37, 0), #03282e);
    }

    .hero-inner {
        align-items: center;
        padding: 0 0 90px;
    }

    .hero-content {
        max-width: 100%;
        padding-top: 54px;
    }

    .eyebrow {
        font-size: 11px;
        letter-spacing: 4px;
    }

    .hero h1 {
        max-width: 620px;
        font-size: clamp(46px, 12vw, 68px);
        line-height: 1.04;
    }

    .hero p {
        max-width: 560px;
        font-size: 19px;
    }

    .button-row {
        gap: 14px;
    }

    .btn {
        min-height: 56px;
        padding: 0 22px;
    }

    .section {
        padding: 50px 0;
    }

    .section-dark {
        padding-top: 40px;
    }

    .product-grid,
    .trust-grid,
    .care-table {
        grid-template-columns: 1fr;
    }

    .product-card img {
        height: 220px;
    }

    .trust-section {
        padding: 0 0 56px;
    }

    .trust-item {
        padding: 34px 28px;
        text-align: center;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .trust-item:last-child {
        border-bottom: 0;
    }

    .trust-title-row {
        display: block;
        margin-bottom: 12px;
    }

    .trust-icon {
        width: 66px;
        height: 66px;
        margin: 0 auto 18px;
    }

    .trust-grid h3 {
        font-size: 31px;
    }

    .trust-grid p {
        margin: 0;
        font-size: 19px;
        line-height: 1.5;
    }

    .catalogue-top {
        display: block;
    }

    .delivery-note {
        display: inline-flex;
        margin-top: 16px;
        border-radius: 12px;
    }

    .product-detail-image img {
        height: 340px;
    }

    .add-to-basket {
        display: block;
    }

    .add-to-basket .btn {
        width: 100%;
        margin-top: 16px;
    }
}