:root{
    --bg:#f4f7fb;
    --card:#ffffff;
    --primary:#2563eb;
    --primary-dark:#1d4ed8;
    --text:#0f172a;
    --muted:#64748b;
    --border:#e2e8f0;
    --shadow:0 10px 30px rgba(15,23,42,0.08);
    --radius:24px;
}

body{
    background:var(--bg);
    color:var(--text);
}

/* HERO */

.hero{
    padding:70px 0 40px;
}

.hero-box{

    background:linear-gradient(
        135deg,
        #2563eb,
        #1e40af
    );

    border-radius:32px;

    padding:50px;

    color:white;

    box-shadow:var(--shadow);
}

.hero h1{

    font-size:clamp(34px,5vw,58px);

    line-height:1.1;

    margin-bottom:18px;
}

.hero p{

    font-size:18px;

    max-width:760px;

    opacity:0.95;

    color:white;
}

/* SECTION */

.calculator-section{
    padding-bottom:80px;
}

/* ВАЖЛИВО ДЛЯ ТАБЛИЦІ */

.calculator-section .container{

    max-width:100%;

    padding:0;
}

/* КАРТКИ */

.info-card,
.calculator-card,
.notes-card{

    background:var(--card);

    border-radius:var(--radius);

    box-shadow:var(--shadow);

    padding:32px;

    margin: 0px 20px 20px 20px;
}

.calculator-card{

    margin:0 20px 30px;

    overflow:visible;
}

/* INFO */

.info-grid{

    display:grid;

    grid-template-columns:
        repeat(auto-fit,minmax(220px,1fr));

    gap:20px;

    margin-top:25px;
}

.info-item{

    padding:22px;

    border-radius:20px;
}

.info-item strong{

    display:block;

    margin-bottom:10px;

    font-size:18px;
}

.blue{
    background:#dbeafe;
}

.yellow{
    background:#fef3c7;
}

.red{
    background:#fee2e2;
}

/* TABLE */

table{
    width:100%;
    border-collapse:collapse;
}

td{
    padding:14px;
    border-bottom:1px solid var(--border);
    text-align: center;
}

thead td{

    background:#2563eb;

    color:white;

    font-weight:700;
}

/* COLORS */

.color{
    background:#eff6ff;
}

.color2{
    background:#fefce8;
}

.color3{
    background:#fee2e2;
}
.color4{
    background:#93f0a3;
}

.text{
    text-align: justify;
}

/* INPUTS */

input{

    text-align: center;
}

input,
select{

    width:100%;

    min-width:120px;

    padding:14px 16px;

    border-radius:16px;

    border:2px solid var(--border);

    font-size:16px;

    background:white;

    transition:0.3s;
}

input:focus,
select:focus{

    outline:none;

    border-color:var(--primary);
}

/* NOTES */

.notes-card h3{
    margin-bottom:20px;
}

.notes-card ul{

    display:flex;

    flex-direction:column;

    gap:16px;

    padding-left:20px;
}

.notes-card a{

    color:var(--primary-dark);

    font-weight:700;

    text-decoration:none;
}

.notes-card a:hover{
    text-decoration:underline;
}

input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button{
    -webkit-appearance:none;
    margin:0;
}

.related-calculators{
    margin-top:40px;
}

.related-calculators h2{
    text-align:center;
    margin-bottom:10px;
}

.related-text{
    text-align:center;
    color:#666;
    margin-bottom:25px;
    line-height:1.6;
}

.related-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:20px;
}

.related-card{
    background:#fff;
    border-radius:18px;
    padding:20px;
    text-decoration:none;
    color:#333;
    border:1px solid #e9eef5;
    box-shadow:0 4px 15px rgba(0,0,0,0.05);
    transition:all .25s ease;
}

.related-card:hover{
    transform:translateY(-3px);
    box-shadow:0 10px 25px rgba(0,0,0,0.1);
}

.related-card h3{
    margin:0 0 8px;
    font-size:18px;
}

.related-card p{
    margin:0;
    color:#666;
    font-size:14px;
    line-height:1.5;
}

.all-card{
    background:linear-gradient(
        135deg,
        #f5f9ff,
        #eef6ff
    );
    border:2px solid #4a90e2;
}

.all-card h3{
    color:#1565c0;
}

/* MOBILE */

@media(max-width:768px){

    .hero-box{
        padding:35px 24px;
    }

    .info-card,
    .notes-card{
        padding:22px;
    }

    .calculator-card{

        padding:0;

        margin:0 10px 30px;
    }

    .related-grid{
        grid-template-columns:1fr;
    }

    .related-text{
    text-align:justify;
    }
}
