:root {
    --bg-primary: #FFFFFF;
    --bg-secondary: #FBF8F8;
    --bg-accent: #E9E9E9;
    --bg-card: #F2F2F2;
    --bg-price-odd: #D9D9D9;
    --bg-price-even: #F8F8F8;
    --text-primary: #03182E;
    --text-accent: #01A145;
    --text-hero: #46BDF5;
    --text-subtle: #59443F;
    --text-light: #FFFFFF;
    --text-placeholder: #C3B9B5;
    --border-color: #C5C5C5;
    --card-shadow: 2px 2px 10px 0px rgba(0, 0, 0, 0.1);
    --news-card-shadow: 0px 4px 20px rgba(0, 0, 0, 0.25);
    --transition-speed: 0.3s;
}

[data-theme="dark"] {
    --bg-primary: #1a1a1a;
    --bg-secondary: #242424;
    --bg-accent: #333333;
    --bg-card: #2a2a2a;
    --bg-price-odd: #333333;
    --bg-price-even: #2a2a2a;
    --text-primary: #FFFFFF;
    --text-accent: #01A145;
    --text-hero: #46BDF5;
    --text-subtle: #adadad;
    --text-light: #FFFFFF;
    --text-placeholder: #777777;
    --border-color: #555555;
    --card-shadow: 2px 2px 15px 0px rgba(0, 0, 0, 0.3);
    --news-card-shadow: 0px 4px 20px rgba(0, 0, 0, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
        margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}

.header {
    padding: 30px 5%;
    position: relative;
}
.container {
    max-width: 1532px;
    margin: 0 auto;
    padding: 0 15px;
}

.header {
    padding-top: 0;
    padding-bottom: 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 17px;
    font-weight: 700;
}

.container {
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
    max-width: 1200px;
}

.logo-image {
    width: 100px;
    height: 100px;
}

.nav {
    display: flex;
    gap: 70px;
}

.nav__link {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 17px;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease;
    display: inline-block;
}

.nav__link:hover {
    color: var(--text-accent);
}

.nav__link:active {
    transform: translateY(1px);
}


.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle svg {
    width: 28px;
    height: 28px;
    transition: transform 0.3s ease;
    color: var(--text-primary);
}

.theme-toggle:hover svg {
    transform: scale(1.1);
}

.theme-icon-sun {
    display: none;
}

[data-theme="dark"] .theme-icon-sun {
    display: block;
}

[data-theme="dark"] .theme-icon-moon {
    display: none;
}
 
.hero-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.hero-text {
    margin-top: 128px;
    flex-shrink: 0;
}

.hero-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 42px;
    color: var(--text-primary);
    margin-top: 0;
    margin-bottom: 30px;
    line-height: 1.2;
}

.hero-description {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 19px;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 40px;
    max-width: 570px;
}

.btn {
    display: inline-block;
    background-color: var(--text-accent);
    color: var(--text-light);
    font-family: 'Roboto', sans-serif;
    font-weight: 800;
    font-size: 20px;
    text-decoration: none;
    border-radius: 33.5px;
    padding: 14px 0;
    width: 300px;
    text-align: center;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.btn:hover {
    background-color: #01893B;  
    transform: translateY(-2px);
    box-shadow: 0px 8px 25px rgba(0, 0, 0, 0.2);
}

.btn:active {
    transform: scale(0.98);
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.15);
}

.hero-image-container {
    position: relative;
    width: 790px;
    height: 400px;
    flex-shrink: 0;
    margin-left: -200px; 
}

.hero-image {
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-decoration-1,
.hero-decoration-2,
.hero-decoration-3 {
    position: absolute;
    background-color: var(--text-accent);
    border-radius: 50%;
    z-index: 1;
}

.hero-decoration-1 {
    width: 450px;
    height: 450px;
    left: 330px;
    top: 34px;
}

.hero-decoration-2 {
    width: 90px;
    height: 90px;
    left: 690px;
    top: -15px;
}

.hero-decoration-3 {
    width: 60px;
    height: 60px;
    left: 220px;
    top: 270px;
}

.services {
    padding-top: 120px;
    padding-bottom: 120px;
}

.services-content {
    display: flex;
    flex-direction: column;
    gap: 67px;
    align-items: center;
}

.services-row {
    display: flex;
    justify-content: center;
    gap: 50px;
}

.service-card {
    background: var(--bg-primary);
    box-shadow: var(--card-shadow);
    border-radius: 20px;
    padding: 24px;
    box-sizing: border-box;
    width: 250px;
    height: 150px;
    position: relative;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: scale(1.03);
    box-shadow: 4px 4px 15px 0px rgba(0, 0, 0, 0.15); 
}

.service-card:active {
    transform: scale(0.98);
}

.service-card__image {
    position: absolute;
    bottom: 24px;
    right: 24px;
    width: 60px;
}

.service-card__title {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: var(--text-primary);
    margin: 0;
}

.service-card__count {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 15px;
    color: var(--text-subtle);
    margin: 0;
    position: absolute;
    bottom: 24px;
    left: 24px;
}

.about-us,
.stats,
.news {
    min-height: 850px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-us {
    background-color: var(--bg-secondary);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.why-us .container {
    max-width: 1080px;
}

.section-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 38px;
    color: var(--text-accent);
    text-align: center;
    margin-top: 0;
    margin-bottom: 60px;
}

.about-us-description {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 1.2;
    color: var(--text-primary);
    width: 1100px;
    margin: 0 auto 30px;
    position: relative;
    z-index: 2;
}

.about-us-image {
    max-width: 800px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.about-us-decoration-1,
.about-us-decoration-2,
.about-us-decoration-3 {
    background-color: var(--text-accent);
    border-radius: 50%;
    position: absolute;
    z-index: 1;
}

.about-us-decoration-1 {
    width: 150px;
    height: 150px;
    bottom: 38px;
    left: 20px;
}

.about-us-decoration-2 {
    width: 80px;
    height: 80px;
    bottom: 205px;
    left: 85px;
}

.about-us-decoration-3 {
    width: 60px;
    height: 60px;
    bottom: 40px;
    left: 180px;
}

.why-us {
    padding-top: 100px;
    padding-bottom: 100px;
    min-height: 800px;
    box-sizing: border-box;
}

.why-us-title {
    font-family: 'Roboto', sans-serif;
    text-align: center;
    margin-bottom: 130px;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 80px 250px;
}
 
.why-us-item-title {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: var(--text-primary);
    margin-top: 0;
    margin-bottom: 36px;
    margin-left: -30px;
}

.why-us-item-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.why-us-item-icon {
    flex-shrink: 0;
}

.why-us-item-description {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.4;
    margin: 0;
}

.stats {
    background-color: var(--bg-accent);
}

.stats-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stats-number {
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    font-size: 70px;
    color: var(--text-accent);
    line-height: 1.3;
}

.stats-description {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 60px;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
    white-space: pre-line;
}

.news {
    padding-top: 100px;
    padding-bottom: 100px;
    min-height: 800px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.news .section-title {
    text-align: center;
    margin-bottom: 100px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background: var(--bg-card);
    box-shadow: var(--news-card-shadow);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.news-card-image-wrapper {
    width: 100%;
    height: 280px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.25);
}

.news-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.news-card-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: var(--text-primary);
    margin-top: 0;
    margin-bottom: 40px;
    line-height: 1.5;
}

.news-card-link {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--text-accent);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease;
    display: inline-block;
}

.news-card-link:hover {
   color: #01893B;
}

.news-card-link:active {
    transform: translateY(1px);
}

.contacts {
    padding: 90px 0 150px 0;
}

.contacts-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.contacts-title {
    text-align: left;
    margin-bottom: 60px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-text {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}

.map {
    width: 800px;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
}

.map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.footer {
    background-color: var(--text-accent);
    padding: 60px 0;
    color: var(--text-light);
    font-family: 'Roboto', sans-serif;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer-top,
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-logo-image {
    width: 100px;
    height: 100px;
}
.footer-logo-text {
    display: flex;
    flex-direction: column;
}

.footer-logo-title {
    font-size: 32px;
    font-weight: 700;
}

.footer-logo-subtitle {
    font-size: 22px;
    font-weight: 400;   
}

.footer-social {
    display: flex;
    gap: 20px;
}

.footer-bottom {
    align-items: flex-start;
}

.footer-nav,
.footer-center,
.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 20px;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    transition: color 0.3s ease, transform 0.2s ease;
    display: inline-block;
}


.footer-link:hover {
    color: #DDDDDD;
}

.footer-link:active {
    transform: translateY(1px);
}

.footer-center {
    gap: 10px;
    margin-bottom: 30px;
}

.footer-social-link {
    transition: transform 0.3s ease;
    display: inline-block;
}

.footer-social-link:hover {
    transform: scale(1.1);
}

.footer-social-link:active {
    transform: scale(0.95);
}

.footer-contacts {
    gap: 15px;
    align-items: flex-end;
}

.service-page-container {
    display: flex;
    max-width: 1250px;
    margin: 0 auto;
}

.service-sidebar {
    width: 650px;
    padding: 120px 50px;
    box-sizing: border-box;
}

.service-sidebar-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 38px;
    color: var(--text-accent);
    text-align: left;
    margin: 0 0 30px 0;
}

.service-sidebar-link {
    display: block;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: #C3B9B5; /* This will need a dark mode variable */
    text-decoration: none;
    margin-bottom: 20px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.service-sidebar-link:hover {
    color: var(--text-primary);
    transform: translateX(10px);
}

.service-sidebar-link:active {
    transform: translateX(5px);
}

.service-content {
    width: 1350px;
    padding: 120px 50px;
    box-sizing: border-box;
}

.back-link {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #C9C9C9; /* This will need a dark mode variable */
    text-decoration: none;
    display: inline-block;
    margin-bottom: 30px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.back-link:hover {
    color: var(--text-primary);
    transform: translateX(-5px);
}

.back-link:active {
    transform: translateX(-2px);
}

.service-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 38px;
    color: var(--text-accent);
    margin: 0 0 30px 0;
}

.service-description {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 1.25;
    color: var(--text-primary);
    margin-bottom: 30px;
}

.service-image {
    width: 100%;
    border-radius: 20px;
    margin-bottom: 30px;
}

.service-subtitle {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 38px;
    color: var(--text-accent);
    margin: 0 0 30px 0;
}

.service-price-note {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 22px;
    color: var(--text-primary);
    margin-bottom: 30px;
}

.price-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 20px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    border-radius: 20px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 500;
}

.price-item:nth-child(odd) {
    background-color: var(--bg-price-odd);
}

.price-item:nth-child(even) {
    background-color: var(--bg-price-even);
}


.article-text-content {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 1.25;
    color: var(--text-primary);
}

.article-text-content p {
    margin-bottom: 40px;
}

.article-list {
    padding-left: 40px;
    margin: 0;
}

.article-list li {
    margin-bottom: 20px;
}

.article-list ul {
    list-style-type: disc;
    padding-left: 40px;
    margin-top: 20px;
}

.appointment-main {
    padding: 0;
    background-color: var(--bg-primary);
}

.appointment-title {
    display: none; 
}

.appointment-form {
    max-width: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-family: 'Roboto', sans-serif;
    color: var(--text-primary);
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    flex-grow: 1;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 20px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 20px;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    color: var(--text-primary);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="tel"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--text-accent);
    box-shadow: 0 0 10px rgba(1, 161, 69, 0.5);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-placeholder);
    font-family: 'Open Sans', sans-serif;
}


.form-group textarea {
    height: 236px;
    resize: none;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-size: 22px;
    font-family: 'Roboto', sans-serif;
    color: var(--text-primary);
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}

input[type="radio"] {
    -webkit-appearance: none;
    appearance: none;
    background-color: var(--bg-primary);
    margin: 0;
    font: inherit;
    color: var(--text-primary);
    width: 24px;
    height: 24px;
    border: 2px solid var(--text-primary);
    border-radius: 50%;
    display: grid;
    place-content: center;
}

input[type="radio"]::before {
    content: "";
    width: 14px;
    height: 14px;
    border-radius: 50%;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    background-color: var(--text-accent);
}

input[type="radio"]:checked::before {
    transform: scale(1);
}

.appointment-btn {
    width: 380px;
    align-self: flex-start;
    border: none;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-primary);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    width: 500px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    transform: scale(0.9);
    transition: transform 0.4s ease;
}

.modal-overlay.show .modal {
    transform: scale(1);
}

.modal p {
    font-size: 22px;
    margin: 0 0 30px 0;
    color: var(--text-primary);
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
}

.modal .btn {
    width: 100%;
}
