/* General Styles */
@font-face {
    font-family: "Monotype Corsiva";
    src: url("/fonts/Monotype-Corsiva-Regular.woff2") format("woff2");
    font-style: normal;
    font-weight: normal;
}
@font-face {
    font-family: "Monotype Corsiva";
    src: url("/fonts/Monotype-Corsiva-Bold.woff2") format("woff2");
    font-style: normal;
    font-weight: bold;
}
@font-face {
    font-family: "Monotype Corsiva";
    src: url("/fonts/Monotype-Corsiva-Regular-Italic.woff2") format("woff2");
    font-style: italic;
    font-weight: normal;
}
@font-face {
    font-family: "Monotype Corsiva";
    src: url("/fonts/Monotype-Corsiva-Bold-Italic.woff2") format("woff2");
    font-style: italic;
    font-weight: bold;
}

body {
    font-family: "Monotype Corsiva", sans-serif;
    font-style: italic;
    background-color: #FFDAB9;
    margin-left: 210px;
    padding: 0;
    font-size: 20px;
}

.main {
    width: auto;
    text-align: center;
    font-size: 24px;
    background-image: url("/pictures/Logo2.jpg");
    background-color: #FF7F50;
    background-repeat: no-repeat;
    background-size: 72px auto;
    background-position: left;
    height: 70px;
    line-height: 70px;
    margin: auto 15px 5px 5px;
    padding: 1px 1px;
    border-radius: 5px;
    border-bottom-color: #eaeaea;
    font-weight: bold;
}


.pageHeader {
    text-align: center;
    margin: 20px 0 32px 0;
    background: none;
}
.page-titles {
    display: inline-block;
}
.pageHeader h1 {
    font-size: 2.6em;
    font-family: "Monotype Corsiva", serif;
    font-weight: bold;
    color: #FF7F50;
    margin: 0 0 0.05em 0;
    text-shadow:
            -1px -1px 0 #fff,
            1px -1px 0 #fff,
            -1px 1px 0 #fff,
            1px 1px 0 #fff;
    letter-spacing: 1px;
}
.pageHeader h2 {
    font-size: 1.3em;
    font-family: "Monotype Corsiva", serif;
    font-style: italic;
    color: #222;
    margin: 0;
}



header h1, header h2 {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* Navigation Menu */
nav {
    width: 190px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    font-size: 20px;
    background-color: #FF7F50;
    padding-top: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    text-align: center;
    width: 100%;
}
a#link{
    margin-left: 750px;
    text-align: center;
}
ul {
    list-style-type: none;
    margin-left: 200px;
    padding: 0;
    text-align: center;
    width: 100%;
}

nav ul li {
    margin: 0;
    padding: 0;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #FFFFFF;
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: #FFFFFF;
    display: block;
    padding: 5px 5px 5px 15px;
    text-align: left;

}

nav ul li a:hover {
    background-color: #FFA07A;
    color: #FFFFFF;
}

/* Dropdown Menu */
nav ul li ul {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    width: 190px;
    z-index: 10;
    background-color: #FA8072;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

nav ul li:hover > ul {
    display: block;
}

nav ul li ul li {
    border-bottom: 1px solid #FFFFFF;
}

nav ul li ul li a {
    padding: 5px 5px 5px 15px;
    text-align: left;
    margin-left: 0;
}

nav ul li ul li a:hover {
    background-color: #FFA07A;
    color: #FFFFFF;
    width: 90%;
    padding-left: 15px;
}

/* Three Column Layout */
.three-columns {
    display: flex;
    justify-content: space-between;
    margin-left: 200px;
    padding: 20px;
    gap: 20px;
    align-items: stretch; /* Изменено */
}





.column::before {
    content: "";
    position: absolute;
    inset: -5px;
    transform: translate(10px, 8px);
    z-index: -1;
    background: #FF7F50;
    filter: blur(10px);
}

.column h2 {
    text-align: center;
    color: #FF7F50;
    font-size: 25px;
    margin-top: 0;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.column {
    flex: 1;
    min-width: 300px;
    border: 3px solid #FFFFFF;
    border-radius: 10px;
    padding: 20px;
    background-color: #FFFFFF;
    position: relative;
    margin-bottom: 20px;

}

/* 3. Контентные блоки - ФИКСИРОВАННЫЙ размер */
div.info,
div.keeled,
div.jQuery {
    display: none;
    height: 250px; /* Фиксированная высота */
    min-height: 250px; /* Запрещаем сжатие */
    overflow-y: auto;
    padding: 15px;
    margin-top: 10px;
    background: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

/* Specific content styles */
div.info p {
    text-align: justify;
    margin: 0;
    color: #000;
    font-weight: bold;
    font-size: 20px;
}

.list {
    list-style-type: "►";
    padding-left: 20px;
    margin: 10px 0;
    text-align: left;
}

/* jQuery Section */
.jQuery-content {
    text-align: center;
    padding: 10px;
}

/*#tekst {
    position: relative;
    left: 0;
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f8f8;
    border-radius: 5px;
}*/

/* Header Buttons */
.header-buttons {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 10px;
}

.header-button {
    padding: 8px 15px;
    background-color: #FF7F50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: "Monotype Corsiva", sans-serif;
    font-size: 16px;

}

.header-button:hover {
    background-color: #FFA07A;
}
/* Выделение активной кнопки */
.header-button.active {
    background-color: #FF6347;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
}

/* Footer Styles */
footer {
    text-align: center;
    padding: 2%;
    background-color: #FFE4B5;
    color: black;
    margin-top: 20px;
    margin-left: 5px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .three-columns {
        flex-direction: column;
        margin-left: 0;
        padding-top: 70px;
    }

    .column {
        width: 90%;
        margin: 0 auto 20px;
    }

    div.info, div.keeled, div.jQuery {
        height: 200px; /* Slightly smaller on mobile */
    }

    nav {
        width: 100%;
        height: auto;
        position: static;
        padding-top: 0;
    }

    footer {
        margin-left: 0;
    }

    .main, .pageHeader {
        margin-left: 15px;
    }

    .header-buttons {
        position: static;
        transform: none;
        justify-content: center;
        margin-top: 10px;
    }
}
/* Ensure section is centered */
section.kalkulaator-section {
    position: relative;
    margin: 3% 40% 3% 38%;
    width: 35%;
    border: 3px solid #FFFFFF;
    border-radius: 10px;
    padding: 20px;
    background-color: #FFFFFF;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center; /* Center everything inside */
}

/* Center and group radio buttons + image */
.radio-container {
    display: flex;
    align-items: center;
    justify-content: center; /* Center elements horizontally */
    gap: 30px; /* Reduce space between radio buttons and image */
    width: 100%;
    margin-top: 10px;
}

/* Stack radio buttons vertically */
.radio-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start; /* Keep radio buttons aligned left */
}

/* Default styling for radio buttons */
.radio-list label {
    font-size: 18px;
    color: #333;
    cursor: pointer;
    padding: 5px; /* Optional: Add padding for better appearance */
    border: 1px solid transparent; /* Initial border */
    display: inline-block; /* Ensures the label behaves like a block for styling */
}

/* Highlighted styling for selected radio buttons */
.radio-list label.selected {
    background-color: #ffffff; /* Light blue background */
    border-color: #fd9c50; /* Blue border */
    font-weight: bold;
    border-radius: 10px;
}

/* Adjust image */
#image {
    max-width: 300px;
    border: none;

}

/* Input section centered */
.input-section {
    text-align: center;
    margin-top: 15px;
}

/* Input field */
input#textbox {
    text-align: center;
    padding: 10px;
    width: 10%;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-top: 10px;
    font-size: 18px;
}

/* Center button */
button {
    font-family: "Corbel Light", sans-serif;
    padding: 10px 20px;
    font-size: 18px;
    color: #FFFFFF;
    background-color: #FF7F50;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: block;
    margin: 15px auto;
}

button:hover {
    background-color: #e66b3f;
}

/* Center output text */
p#total-price {
    margin-top: 20px;
    font-size: 18px;
    color: #333;
    text-align: center;

}


 table {
     width: 100%;
     border-collapse: collapse;
     font-family: Arial, sans-serif;
     margin-top: 20px;
     box-shadow: 0 2px 8px rgba(0,0,0,0.1);
     border-radius: 10px;
     overflow: hidden;
 }

th, td {
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #e66b3f;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #eef6ff;
}

img {
    max-width: 100px;
    max-height: 80px;
    object-fit: cover;
    border-radius: 6px;
}

form input[type="text"] {
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

form input[type="submit"] {
    background-color: #e66b3f;
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 5px;
}

form input[type="submit"]:hover {
    background-color: #e66b3f;
}

a {
    text-decoration: none;
    color: #e66b3f;
}

a:hover {
    color: #e66b3f;
    text-decoration: underline;
}

main.twocolumns {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
    margin-top: 20px;
}

.list-block {
    min-width: 220px;
    max-width: 300px;
    background: #fff8f3;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 22px 18px;
    margin-top: 15px;
    margin-right: 20px;
    margin-left: 200px;
    font-size: 1.18em;
    height: auto;
}

.list-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list-block li {
    margin-bottom: 18px;
}

.list-block a {
    color: #e66b3f;
    font-style: italic;
    text-decoration: none;
    font-family: "Monotype Corsiva", serif;
}

.list-block a:hover {
    color: #FF7F50;
    text-decoration: underline;
}

.detail-block-info {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 32px;
    margin-top: 8px;
    margin-bottom: 18px;
}

.detail-block-photo {
    min-width: 110px;
    display: flex;
    justify-content: center;
}

.detail-block-photo img {
    border-radius: 13px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    width: 110px;
    height: 110px;
    object-fit: contain;
    background: #fff8f3;
}

.detail-block-metadata {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 1.11em;
}

.detail-block-metadata b {
    font-family: "Monotype Corsiva", serif;
    color: #e66b3f;
    font-size: 1.05em;
    font-weight: bold;
    margin-right: 5px;
    min-width: 100px;
    display: inline-block;
}

.detail-block .punkt-link {
    color: #e66b3f;
    font-style: italic;
    font-weight: bold;
    margin-left: 8px;
    text-decoration: none;
    transition: color 0.18s;
}
.detail-block .punkt-link.plus:hover { color: #39af60; }
.detail-block .punkt-link.minus:hover { color: #c65a1b; }

.detail-block-comments {
    margin-top: 22px;
}
.detail-block-comments-label {
    font-weight: bold;
    color: #e66b3f;
    font-family: "Monotype Corsiva", serif;
    margin-bottom: 4px;
}
.detail-block-comments-list {
    list-style: "🐾 ";
    padding-left: 22px;
    margin-bottom: 16px;
    text-align: left;
    display: block;
    width: auto;
}

.detail-block-comments-list li {
    margin-bottom: 4px;
    font-size: 1em;
    font-family: "Monotype Corsiva", serif;
    text-align: left;         /* Сброс */
    display: list-item;
}

.detail-block form {
    display: flex;
    gap: 10px;
}
.detail-block input[type="text"] {
    flex: 1;
    border: 1.5px solid #e66b3f;
    border-radius: 7px;
    padding: 8px 10px;
    font-size: 1em;
    font-family: "Monotype Corsiva", serif;
    background: #fff;
}
.detail-block input[type="submit"] {
    background-color: #e66b3f;
    color: white;
    border: none;
    border-radius: 7px;
    padding: 8px 18px;
    font-size: 1em;
    font-family: "Monotype Corsiva", serif;
    cursor: pointer;
    transition: background-color 0.17s;
}
.detail-block input[type="submit"]:hover {
    background-color: #fd9c50;
}

.detail-block {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 300px; /* или auto, если не нужен фикс. размер */
    padding-top: 12px; /* отступ сверху по вкусу */
}
.detail-block-empty {
    margin-top: 2.5em;
    font-size: 1.18em;
    color: #333;
    text-align: left; /* или center, если нравится по центру */
    font-family: "Monotype Corsiva", serif;
    font-style: italic;
}
