* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: Cambria, Georgia, "Times New Roman", serif;
    background:
        radial-gradient(circle at top left, rgba(255, 209, 102, 0.2), transparent 28%),
        linear-gradient(180deg, #eef4f9 0%, #e7f0f8 100%);
    color: #10233b;
}

header,
nav,
main,
section,
article,
aside,
footer {
    display: block;
}

header table,
nav table,
main table,
footer table {
    width: 100%;
    border-collapse: collapse;
}

table {
    background: #ffffff;
}

td,
th {
    border: 1px solid #c6d4e2;
    padding: 12px;
    vertical-align: top;
}

header td,
nav td,
footer td {
    vertical-align: middle;
}

header table {
    background:
        linear-gradient(135deg, rgba(7, 25, 43, 0.95), rgba(13, 59, 102, 0.95)),
        linear-gradient(45deg, #0d3b66, #145da0);
    color: #ffffff;
    position: relative;
    overflow: hidden;
    border: none;
}

header table::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 30%, rgba(255, 209, 102, 0.22), transparent 18%),
        radial-gradient(circle at 82% 24%, rgba(255, 255, 255, 0.08), transparent 16%),
        linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.06) 48%, transparent 100%);
    pointer-events: none;
}

header h1 {
    margin: 0 0 10px;
    font-size: 2.5rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.24);
}

header p {
    margin: 0;
    line-height: 1.6;
    font-size: 1rem;
    max-width: 720px;
    opacity: 0.94;
}

header img {
    width: 118px;
    height: 118px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.9);
    background: #ffffff;
    box-shadow:
        0 12px 26px rgba(0, 0, 0, 0.22),
        0 0 0 8px rgba(255, 209, 102, 0.16);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

header img:hover {
    transform: scale(1.04) rotate(-2deg);
    box-shadow:
        0 16px 30px rgba(0, 0, 0, 0.24),
        0 0 0 10px rgba(255, 209, 102, 0.2);
}

nav table {
    background: linear-gradient(90deg, #061b31 0%, #0b2d4c 100%);
    border: none;
}

nav td {
    text-align: center;
    padding: 8px;
    background: transparent;
    border: none;
}

nav a {
    display: block;
    color: #f8fbfe;
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.92rem;
    padding: 12px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

nav a:hover {
    color: #000000;
    background: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(255, 255, 255, 0.2);
}

.mobile-nav-bar {
    display: none;
}

main {
    padding: 24px;
}

main section {
    margin-bottom: 24px;
}

main table {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(15, 35, 59, 0.08);
}

caption {
    caption-side: top;
    background: #ffffff;
    padding: 14px 12px 6px;
}

h2,
h3,
h4 {
    margin-top: 0;
    color: #0d3b66;
}

h2 {
    font-size: 1.8rem;
}

h3 {
    font-size: 1.2rem;
}

h4 {
    font-size: 1rem;
}

p,
li,
label,
td,
th {
    line-height: 1.7;
}

th {
    background: #d9e8f6;
    color: #0d3b66;
    text-align: left;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

main img {
    box-shadow: 0 8px 20px rgba(13, 59, 102, 0.12);
}

ul {
    margin: 0;
    padding-left: 22px;
}

li {
    margin-bottom: 8px;
}

a {
    color: #145da0;
}

a:hover {
    color: #0d3b66;
}

input,
textarea,
select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #9eb5cb;
    border-radius: 8px;
    font: inherit;
    background: #f9fbfd;
    color: #10233b;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

input[type="number"] {
    max-width: 90px;
    text-align: center;
}

input[type="submit"],
button,
a[href="cart.html"],
a[href="checkout.html"] {
    display: inline-block;
    padding: 10px 18px;
    border: none;
    border-radius: 999px;
    background: #0d3b66;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
}

input[type="submit"]:hover,
button:hover,
a[href="cart.html"]:hover,
a[href="checkout.html"]:hover {
    background: #145da0;
    color: #ffffff;
}

button[type="button"] {
    background: #8b1e3f;
}

button[type="button"]:hover {
    background: #a92a4f;
}

strong {
    color: #0d3b66;
}

footer table {
    background: #0a2744;
    color: #ffffff;
}

footer p {
    margin: 0;
}

footer td:last-child {
    text-align: center;
    white-space: nowrap;
}

footer img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 0;
    background: transparent;
    padding: 0;
    margin: 0 8px;
    opacity: 0.88;
    filter: brightness(0) invert(1);
    box-shadow: none;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

footer img:hover {
    transform: translateY(-1px);
    opacity: 1;
}

.contact-social img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    margin: 0 8px;
    filter: brightness(0) invert(0);
    opacity: 0.9;
}

.contact-social img:hover {
    opacity: 1;
}

.team-card {
    text-align: center;
    padding: 14px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(13, 59, 102, 0.1);
}

.team-card img {
    width: 190px;
    height: 220px;
    object-fit: cover;
    object-position: center top;
    border-radius: 8px;
    border: 5px solid #d9e8f6;
    margin-bottom: 12px;
}

.team-card h4 {
    margin-bottom: 6px;
}

.team-card p {
    margin: 6px 0;
}

.highlight-card {
    background: #f8fbfe;
    border-radius: 14px;
    padding: 12px;
}

.highlight-card h3 {
    margin-top: 14px;
    margin-bottom: 8px;
}

.highlight-card p {
    margin-bottom: 0;
}

.highlight-video {
    width: 100%;
    display: block;
    border-radius: 14px;
    background: #000000;
    box-shadow: 0 8px 20px rgba(13, 59, 102, 0.14);
}

.page-news3 main section:first-of-type td,
.page-news4 main section:first-of-type td,
.page-news5 main section:first-of-type td,
.page-news6 main section:first-of-type td {
    text-align: center;
    padding: 28px 20px;
    background:
        linear-gradient(135deg, rgba(13, 59, 102, 0.08), rgba(255, 209, 102, 0.1)),
        #ffffff;
}

.page-news3 main section:first-of-type h2,
.page-news4 main section:first-of-type h2,
.page-news5 main section:first-of-type h2,
.page-news6 main section:first-of-type h2 {
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.95rem;
    color: #6b8297;
}

.page-news3 main section:first-of-type h3,
.page-news4 main section:first-of-type h3,
.page-news5 main section:first-of-type h3,
.page-news6 main section:first-of-type h3 {
    font-size: 2rem;
    line-height: 1.3;
    max-width: 760px;
    margin: 0 auto;
}

.page-news3 main section:nth-of-type(2) td:first-child,
.page-news4 main section:nth-of-type(2) td:first-child,
.page-news5 main section:nth-of-type(2) td:first-child,
.page-news6 main section:nth-of-type(2) td:first-child {
    background: #f8fbfe;
    text-align: center;
}

.page-news3 main section:nth-of-type(2) td:first-child p,
.page-news4 main section:nth-of-type(2) td:first-child p,
.page-news5 main section:nth-of-type(2) td:first-child p,
.page-news6 main section:nth-of-type(2) td:first-child p {
    margin: 8px 0;
}

.page-news3 main section:nth-of-type(2) td:last-child,
.page-news4 main section:nth-of-type(2) td:last-child,
.page-news5 main section:nth-of-type(2) td:last-child,
.page-news6 main section:nth-of-type(2) td:last-child {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.page-news3 main section:nth-of-type(2) article p,
.page-news4 main section:nth-of-type(2) article p,
.page-news5 main section:nth-of-type(2) article p,
.page-news6 main section:nth-of-type(2) article p,
.page-news3 main section:nth-of-type(4) p,
.page-news4 main section:nth-of-type(4) p,
.page-news5 main section:nth-of-type(4) p,
.page-news6 main section:nth-of-type(4) p {
    font-size: 1.02rem;
    line-height: 1.9;
}

.page-news3 main section:nth-of-type(2) img,
.page-news4 main section:nth-of-type(2) img,
.page-news5 main section:nth-of-type(2) img,
.page-news6 main section:nth-of-type(2) img {
    border-radius: 18px;
    box-shadow: 0 14px 28px rgba(13, 59, 102, 0.16);
}

.page-news3 main section:nth-of-type(3) th,
.page-news4 main section:nth-of-type(3) th,
.page-news5 main section:nth-of-type(3) th,
.page-news6 main section:nth-of-type(3) th {
    background: #cfe2f4;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.88rem;
}

.page-news3 main section:nth-of-type(3) td:first-child,
.page-news4 main section:nth-of-type(3) td:first-child,
.page-news5 main section:nth-of-type(3) td:first-child,
.page-news6 main section:nth-of-type(3) td:first-child {
    font-weight: bold;
    color: #0d3b66;
    width: 28%;
}

.page-news3 main section:nth-of-type(4) td,
.page-news4 main section:nth-of-type(4) td,
.page-news5 main section:nth-of-type(4) td,
.page-news6 main section:nth-of-type(4) td {
    background: linear-gradient(135deg, #ffffff, #f5faff);
}

.page-news1 main section:nth-of-type(5) a,
.page-news2 main section:nth-of-type(5) a,
.page-news main section:nth-of-type(2) a,
.page-news3 main section:nth-of-type(4) a,
.page-news4 main section:nth-of-type(4) a,
.page-news5 main section:nth-of-type(4) a,
.page-news6 main section:nth-of-type(4) a {
    display: inline-block;
    margin-top: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    background: #0d3b66;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
}

.page-news1 main section:nth-of-type(5) a:hover,
.page-news2 main section:nth-of-type(5) a:hover,
.page-news main section:nth-of-type(2) a:hover,
.page-news3 main section:nth-of-type(4) a:hover,
.page-news4 main section:nth-of-type(4) a:hover,
.page-news5 main section:nth-of-type(4) a:hover,
.page-news6 main section:nth-of-type(4) a:hover {
    background: #145da0;
    color: #ffffff;
}

.page-card-payment main,
.page-bank-transfer main,
.page-pay-on-delivery main {
    background: linear-gradient(135deg, #f6fbff 0%, #eef7f1 100%);
    padding: 36px 20px;
}

.payment-hero {
    max-width: 760px;
    margin: 0 auto 24px;
    text-align: center;
    color: #102a43;
}

.payment-hero h2 {
    margin-bottom: 10px;
    font-size: 2.2rem;
}

.payment-hero p {
    margin: 0;
    color: #52616f;
    font-size: 1.05rem;
}

.payment-card-section,
.transfer-panel,
.delivery-success {
    max-width: 620px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #d9e8ef;
    border-radius: 8px;
    box-shadow: 0 18px 38px rgba(13, 59, 102, 0.14);
}

.card-payment-form {
    padding: 22px;
}

.card-payment-form table,
.transfer-panel table {
    border: 0;
}

.card-payment-form caption h3,
.transfer-panel h3 {
    color: #0d3b66;
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.card-payment-form td {
    border: 0;
    padding: 10px;
}

.card-payment-form label {
    display: block;
    font-weight: bold;
    color: #243b53;
}

.card-payment-form input,
.card-payment-form select {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #b8c8d6;
    border-radius: 6px;
    padding: 12px;
    font-size: 1rem;
}

.card-payment-form input[type="submit"],
.transfer-panel a,
.delivery-success a {
    display: inline-block;
    width: auto;
    min-width: 160px;
    border: 0;
    border-radius: 6px;
    padding: 12px 20px;
    background: #0d3b66;
    color: #ffffff;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
}

.card-payment-form input[type="submit"]:hover,
.transfer-panel a:hover,
.delivery-success a:hover {
    background: #145da0;
}

.transfer-panel {
    padding: 30px;
    text-align: center;
}

.transfer-detail {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 14px 0;
    padding: 16px;
    background: #f4f9fc;
    border: 1px solid #d9e8ef;
    border-radius: 8px;
}

.transfer-detail span {
    color: #52616f;
}

.transfer-detail strong {
    color: #0d3b66;
    font-size: 1.2rem;
}

.transfer-note {
    margin: 22px 0;
    color: #52616f;
}

.delivery-success {
    padding: 42px 26px;
    text-align: center;
}

.success-check {
    width: 86px;
    height: 86px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #1f9d55;
    color: #ffffff;
    font-size: 3.4rem;
    line-height: 86px;
    font-weight: bold;
}

.delivery-success h2 {
    color: #102a43;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.delivery-success p {
    margin-bottom: 24px;
    color: #52616f;
}

@media (max-width: 900px) {
    body {
        background: #eef4f9;
        font-size: 15px;
    }

    main {
        padding: 12px;
    }

    header table {
        border-radius: 0 0 18px 18px;
    }

    header td {
        padding: 18px 12px;
    }

    header img {
        width: 88px;
        height: 88px;
        border-width: 4px;
    }

    header h1 {
        font-size: 1.45rem;
        letter-spacing: 0.04em;
        line-height: 1.25;
    }

    header p {
        font-size: 0.9rem;
        line-height: 1.45;
        margin: 0 auto;
    }

    header,
    nav {
        display: none;
    }

    .mobile-nav-bar {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 14px;
        background: #061b31;
        box-shadow: 0 10px 24px rgba(6, 27, 49, 0.24);
        position: sticky;
        top: 0;
        z-index: 20;
    }

    .mobile-nav-brand {
        display: flex;
        align-items: center;
        gap: 9px;
        min-width: 0;
        flex: 1;
        color: #ffffff;
    }

    .mobile-nav-brand img {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid #ffffff;
        background: #ffffff;
        flex: 0 0 auto;
    }

    .mobile-nav-brand strong {
        display: block;
        font-size: 0.92rem;
        line-height: 1.15;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-nav-bar label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .mobile-nav-bar select {
        width: 40%;
        min-width: 126px;
        min-height: 48px;
        padding: 10px 34px 10px 12px;
        border: 0;
        border-radius: 10px;
        background:
            linear-gradient(45deg, transparent 50%, #0d3b66 50%) calc(100% - 18px) 20px / 7px 7px no-repeat,
            linear-gradient(135deg, #ffffff, #f3f8fc);
        color: #0d3b66;
        font-weight: bold;
        font-size: 0.88rem;
        outline: none;
        appearance: none;
        box-shadow:
            inset 0 0 0 1px rgba(13, 59, 102, 0.16),
            0 8px 18px rgba(0, 0, 0, 0.16);
    }

    .mobile-nav-bar select:focus {
        box-shadow:
            inset 0 0 0 2px #ffd166,
            0 8px 18px rgba(0, 0, 0, 0.16);
    }

    table,
    tbody,
    tr,
    td,
    th {
        display: block;
        width: 100% !important;
    }

    table {
        border: 0;
        background: transparent;
    }

    tr {
        margin-bottom: 12px;
    }

    td,
    th {
        border: 0;
        text-align: left !important;
    }

    main section {
        margin-bottom: 14px;
    }

    main section > table,
    main section > form > table,
    main section article,
    .team-card,
    .payment-card-section,
    .transfer-panel,
    .delivery-success {
        background: #ffffff;
        border: 1px solid #d8e5ef;
        border-radius: 8px;
        box-shadow: 0 8px 18px rgba(13, 59, 102, 0.08);
        overflow: hidden;
    }

    main section > table td,
    main section > form > table td,
    main section article {
        padding: 14px;
    }

    caption {
        display: block;
        padding: 12px;
        background: #0d3b66;
        color: #ffffff;
        border-radius: 8px 8px 0 0;
    }

    caption h2,
    caption h3 {
        margin: 0;
        color: #ffffff;
        font-size: 1.05rem;
    }

    h2 {
        font-size: 1.35rem;
        line-height: 1.3;
    }

    h3 {
        font-size: 1.12rem;
        line-height: 1.35;
    }

    p,
    li {
        line-height: 1.65;
    }

    ul {
        padding-left: 18px;
    }

    header td,
    footer td,
    main section:first-of-type td {
        text-align: center !important;
    }

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

    main img {
        display: block;
        margin: 0 auto 10px;
        border-radius: 8px;
    }

    .contact-social {
        text-align: center;
        white-space: nowrap;
    }

    .contact-social img {
        display: inline-block;
        width: 28px;
        height: 28px;
        margin: 0 7px;
        vertical-align: middle;
    }

    .page-index main section article table,
    .page-product main section article,
    .page-about .team-card {
        text-align: center;
    }

    .page-index main section article table td,
    .page-product main section article,
    .page-about .team-card {
        text-align: center !important;
    }

    .page-index main section article img,
    .page-product main section article img {
        width: 100%;
        max-width: 230px;
        height: auto;
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }

    .team-card {
        margin-bottom: 14px;
    }

    .team-card img {
        width: 100%;
        max-width: 240px;
        height: 280px;
        object-fit: cover;
        object-position: center top;
    }

    input,
    textarea,
    select {
        width: 100%;
        max-width: 100%;
        min-height: 42px;
        font-size: 1rem;
    }

    textarea {
        min-height: 120px;
    }

    input[type="submit"],
    button,
    a[href="cart.html"],
    a[href="checkout.html"] {
        width: 100%;
        text-align: center;
        padding: 12px 14px;
    }

    .page-cart main section:nth-of-type(2),
    .page-checkout main section:nth-of-type(2) {
        overflow-x: auto;
    }

    .page-cart main section:nth-of-type(2) table,
    .page-checkout main section:nth-of-type(2) table {
        min-width: 0;
    }

    .page-cart main section:nth-of-type(2) tr,
    .page-checkout main section:nth-of-type(2) tr {
        background: #ffffff;
        border: 1px solid #d8e5ef;
        border-radius: 8px;
        padding: 8px;
    }

    .page-cart main section:nth-of-type(2) th,
    .page-checkout main section:nth-of-type(2) th {
        display: none;
    }

    .payment-hero {
        margin-bottom: 16px;
        padding: 4px 8px;
    }

    .payment-hero h2 {
        font-size: 1.55rem;
    }

    .card-payment-form,
    .transfer-panel,
    .delivery-success {
        padding: 18px;
    }

    .transfer-detail {
        display: block;
        text-align: center;
    }

    .transfer-detail strong {
        display: block;
        margin-top: 8px;
    }

    .success-check {
        width: 72px;
        height: 72px;
        line-height: 72px;
        font-size: 2.8rem;
    }

    footer td {
        padding: 14px;
    }
}

@media (min-width: 901px) and (max-width: 1200px) {
    main {
        padding: 22px;
    }

    header h1 {
        font-size: 2.1rem;
    }

    nav a {
        font-size: 0.9rem;
        padding: 11px 8px;
    }

    .team-card img {
        width: 160px;
        height: 190px;
    }

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