/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 17px;
    line-height: 1.5;
    color: #2c3e50;
    background-color: #003366;
}

body {
    background-color: #003366;
    margin: 0;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4a 100%);
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 8px 8px;
    position: relative;
}

header h1 {
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
    text-align: left;
    margin: 0;
    line-height: 1.2;
}

header p {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    position: absolute;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    margin: 0;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    backdrop-filter: blur(10px);
}

.phone-number {
    color: #2c3e50;
    cursor: pointer;
    transition: color 0.2s ease;
    user-select: none;
}

.phone-number:hover {
    color: #34495e;
}

/* Main Layout */
main {
    max-width: 1200px;
    margin: 16px auto;
    padding: 0 16px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

/* Section Styles */
section {
    background: #ffffff;
    padding: 20px 24px;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    border: 1px solid #e9ecef;
    display: grid;
    gap: 12px;
}

/* Content Flow Layout */
.content-flow {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: start;
}

.text-content {
    display: grid;
    gap: 10px;
}

/* Flowing Images */
.flow-left {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    max-width: 100px;
    border-radius: 4px;
}

.flow-right {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    max-width: 100px;
    border-radius: 4px;
}

section h2 {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #3498db;
    background: none;
    line-height: 1.3;
}

section h3 {
    font-size: 19px;
    font-weight: 600;
    color: #34495e;
    margin: 0;
    line-height: 1.3;
}

/* Typography */
p {
    line-height: 1.6;
    margin: 0;
    color: #2c3e50;
    font-size: 16px;
}

/* Lists */
ul {
    list-style: none;
    margin: 0;
    display: grid;
    gap: 6px;
}

ul li {
    position: relative;
    padding-left: 16px;
    line-height: 1.5;
    color: #2c3e50;
    font-size: 16px;
}

ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 5px;
    height: 5px;
    background-color: #3498db;
    border-radius: 50%;
}

/* Links */
a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    border-radius: 3px;
}

img.right {
    float: right;
    margin: 0 0 12px 16px;
    max-width: 128px;
}

/* Product Sections */
.product {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-left: 4px solid #27ae60;
    display: grid;
    grid-template-columns: auto 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.product h2 {
    border-bottom-color: #27ae60;
    grid-column: 1 / -1;
}

.product p:first-of-type {
    grid-column: 1 / -1;
}

.product figure {
    grid-row: 3;
    grid-column: 1;
    text-align: center;
    margin: 0;
}

.product div {
    padding: 16px;
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    display: grid;
    gap: 8px;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

table th {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #ffffff;
    padding: 12px 10px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    line-height: 1.2;
}

table td {
    padding: 12px 10px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: top;
    line-height: 1.4;
    font-size: 15px;
    color: #2c3e50;
}

table tr:hover {
    background-color: #f8f9fa;
}

table img {
    max-height: 50px;
    width: auto;
    border-radius: 3px;
}

/* About Section */
.about {
    background: linear-gradient(135deg, #ecf0f1 0%, #ffffff 100%);
    border-left: 4px solid #95a5a6;
}

.about h2 {
    border-bottom-color: #95a5a6;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    header {
        padding: 14px 16px;
        text-align: center;
    }

    header h1 {
        font-size: 22px;
        text-align: center;
        margin-bottom: 10px;
    }

    header p {
        position: static;
        transform: none;
        display: inline-block;
        font-size: 16px;
    }

    main {
        padding: 0 12px;
        gap: 12px;
    }

    section {
        padding: 16px 18px;
        gap: 10px;
    }

    section h2 {
        font-size: 18px;
    }

    section h3 {
        font-size: 16px;
    }

    p,
    ul li {
        font-size: 15px;
        line-height: 1.4;
    }

    /* Mobile content flow */
    .content-flow {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .flow-left,
    .flow-right {
        grid-column: 1;
        justify-self: center;
        max-width: 80px;
    }

    .product {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .product figure {
        grid-row: auto;
        grid-column: 1;
    }

    .product div {
        padding: 12px;
        gap: 6px;
    }

    table th,
    table td {
        padding: 8px 6px;
        font-size: 12px;
        line-height: 1.2;
    }

    img.right {
        float: none;
        display: block;
        margin: 0 auto 12px auto;
        max-width: 100px;
    }
}

@media screen and (max-width: 480px) {
    header h1 {
        font-size: 18px;
    }

    header p {
        font-size: 15px;
        padding: 5px 10px;
    }

    main {
        gap: 10px;
    }

    section {
        padding: 12px 14px;
        gap: 8px;
    }

    section h2 {
        font-size: 16px;
    }

    section h3 {
        font-size: 15px;
    }

    p,
    ul li {
        font-size: 14px;
    }

    ul {
        gap: 4px;
    }

    .content-flow {
        gap: 8px;
    }

    .flow-left,
    .flow-right {
        max-width: 60px;
    }

    table th,
    table td {
        padding: 6px 4px;
        font-size: 11px;
    }

    table img {
        max-height: 35px;
    }
}