/*
  Техно-будни | Ratione-Voluptatibus.site
  Global Stylesheet
*/

/* 1. GOOGLE FONTS IMPORT */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;700&family=Space+Grotesk:wght@500;700&display=swap');

/* 2. CSS VARIABLES */
:root {
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Manrope', sans-serif;

    --color-bg: #F8F7F4;
    --color-text: #1C1C1E;
    --color-primary: #00A78E;
    --color-primary-dark: #008C76;
    --color-border: #E0E0E0;
    --color-footer-bg: #1C1C1E;
    --color-footer-text: #A8A8A8;

    --container-width: 1200px;
    --header-height: 70px;
}

/* 3. GLOBAL STYLES & RESETS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    background-color: var(--color-bg);
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-primary-dark);
}

ul {
    list-style: none;
}

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

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 24px;
    color: var(--color-text);
}
.logo:hover {
    color: var(--color-text);
}


/* 4. HEADER */
.header {
    height: var(--header-height);
    border-bottom: 1px solid var(--color-border);
    background-color: rgba(248, 247, 244, 0.85);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav__list {
    display: flex;
    gap: 30px;
}

.nav__link {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text);
    position: relative;
    padding-bottom: 5px;
}

.nav__link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.nav__link:hover::after {
    width: 100%;
}

/* 5. FOOTER */
.footer {
    background-color: var(--color-footer-bg);
    color: var(--color-footer-text);
    padding: 60px 0 0;
}

.footer__container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 60px;
}

.footer__column--brand .logo {
    color: var(--color-bg);
    display: inline-block;
    margin-bottom: 15px;
}
.footer__column--brand .logo:hover {
    color: var(--color-bg);
}

.footer__tagline {
    max-width: 250px;
}

.footer__title {
    font-family: var(--font-heading);
    font-size: 18px;
    color: #fff;
    margin-bottom: 20px;
}

.footer__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__link {
    color: var(--color-footer-text);
}

.footer__link:hover {
    color: #fff;
}

.footer__contact {
    font-style: normal;
}

.footer__contact p {
    margin-bottom: 10px;
}

.footer__bottom {
    border-top: 1px solid #333;
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
}

/* 6. RESPONSIVE STYLES (Mobile-First approach) */
@media (max-width: 992px) {
    .footer__container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav {
        /* On smaller screens, we would typically implement a burger menu. */
        /* For now, we'll hide it to avoid layout issues. */
        display: none;
    }
    .footer__container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer__tagline {
        margin: 0 auto 20px;
    }
}
/* style.css */

/* 7. BUTTONS */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn--primary {
    background-color: var(--color-primary);
    color: #fff;
}

.btn--primary:hover {
    background-color: var(--color-primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 167, 142, 0.2);
}

.btn--secondary {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn--secondary:hover {
    background-color: var(--color-primary);
    color: #fff;
    transform: translateY(-2px);
}


/* 8. HERO SECTION */
.hero {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    padding: 60px 0;
    overflow: hidden;
}

.hero__container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 60px;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: 56px;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
    min-height: 135px; /* Reserve space for text animation */
}

/* For text animation */
.hero__title span {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    display: inline-block;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero__subtitle {
    font-size: 18px;
    line-height: 1.7;
    max-width: 500px;
    margin-bottom: 30px;
    color: #555;
}

.hero__actions {
    display: flex;
    gap: 15px;
}

.hero__visual {
    perspective: 1000px; /* For 3D parallax effect */
}

.hero__image-wrapper {
    transition: transform 0.1s linear;
}

.hero__image {
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    width: 100%;
}

/* RESPONSIVE STYLES FOR HERO */
@media (max-width: 992px) {
    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero__content {
        order: 2;
    }
    .hero__visual {
        order: 1;
        margin-bottom: 40px;
    }
    .hero__title {
        font-size: 44px;
        min-height: 0;
    }
    .hero__subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    .hero__actions {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero {
        min-height: auto;
        padding: 40px 0;
    }
    .hero__title {
        font-size: 36px;
    }
    .hero__subtitle {
        font-size: 16px;
    }
    .hero__actions {
        flex-direction: column;
        align-items: center;
    }
    .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* style.css */

/* 9. SECTION HEADER (Reusable) */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header__title {
    font-family: var(--font-heading);
    font-size: 42px;
    margin-bottom: 10px;
}

.section-header__subtitle {
    font-size: 18px;
    color: #555;
    max-width: 500px;
    margin: 0 auto;
}

/* 10. STORIES SECTION */
.stories {
    padding: 80px 0;
    background-color: #fff;
}

.stories__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

.story-card {
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.story-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.07);
}

.story-card__link-wrapper {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allows content to push footer down */
}

.story-card__image-container {
    overflow: hidden;
    height: 200px;
}

.story-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.story-card:hover .story-card__image {
    transform: scale(1.05);
}

.story-card__content {
    padding: 25px;
    flex-grow: 1; /* Takes available space */
}

.story-card__category {
    display: inline-block;
    padding: 4px 10px;
    background-color: rgba(0, 167, 142, 0.1);
    color: var(--color-primary-dark);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 15px;
}

.story-card__title {
    font-family: var(--font-heading);
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 10px;
}

.story-card__excerpt {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
}

.story-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 25px 25px;
    border-top: 1px solid var(--color-border);
    margin-top: auto; /* Pushes footer to the bottom */
}

.story-card__author {
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

.story-card__read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 15px;
    color: var(--color-primary);
}

.story-card__read-more svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.story-card__read-more:hover svg {
    transform: translateX(4px);
}


/* RESPONSIVE STYLES FOR STORIES */
@media (max-width: 576px) {
    .section-header__title {
        font-size: 32px;
    }
    .section-header__subtitle {
        font-size: 16px;
    }
    .stories__grid {
        grid-template-columns: 1fr;
    }
}

/* style.css */

/* 11. INSIGHTS SECTION (ACCORDION) */
.insights {
    padding: 80px 0;
}

.accordion {
    max-width: 800px;
    margin: 0 auto;
    border-top: 1px solid var(--color-border);
}

.accordion__item {
    border-bottom: 1px solid var(--color-border);
}

.accordion__header {
    width: 100%;
    background: transparent;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
    text-align: left;
}

.accordion__title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 500;
    color: var(--color-text);
    padding-right: 20px;
}

.accordion__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--color-primary);
    transition: transform 0.3s ease-in-out;
}

.accordion__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.1, 0.25, 1.0);
}

.accordion__body {
    padding: 0px 20px 20px 0;
    font-size: 16px;
    line-height: 1.7;
    color: #333;
}

/* Active State */
.accordion__item.is-active .accordion__icon {
    transform: rotate(180deg);
}
.accordion__item.is-active .accordion__header {
    /* Optional: style for active header */
}
.accordion__item.is-active .accordion__content {
    /* max-height is set via JS for better performance and flexibility */
}

/* style.css */

/* 12. CAREER SECTION (TIMELINE) */
.career {
    padding: 80px 0;
    background-color: #fff;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

/* The central line */
.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--color-border);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
}

.timeline__item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    /* Animation setup */
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.timeline__item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Position items on the left and right */
.timeline__item:nth-child(odd) {
    left: 0;
    padding-right: 30px;
}

.timeline__item:nth-child(even) {
    left: 50%;
    padding-left: 30px;
}

/* The circle on the timeline */
.timeline__item::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    right: -8px;
    background-color: white;
    border: 3px solid var(--color-primary);
    top: 20px;
    border-radius: 50%;
    z-index: 1;
}

.timeline__item:nth-child(even)::after {
    left: -7px;
}

.timeline__content {
    padding: 20px 30px;
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    position: relative;
    border-radius: 8px;
}

.timeline__title {
    font-family: var(--font-heading);
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--color-primary);
}

.timeline__focus {
    font-size: 15px;
    margin-bottom: 10px;
}

.timeline__skills {
    font-size: 15px;
    color: #555;
}

/* RESPONSIVE STYLES FOR TIMELINE */
@media (max-width: 768px) {
    .timeline::after {
        left: 20px;
    }
    
    .timeline__item {
        width: 100%;
        padding-left: 50px;
        padding-right: 15px;
        left: 0 !important; /* Override inline style */
    }

    .timeline__item:nth-child(odd),
    .timeline__item:nth-child(even) {
        left: 0;
        padding-left: 50px;
    }

    .timeline__item::after {
        left: 13px;
    }
}

/* style.css */

/* 13. TOOLS SECTION */
.tools {
    padding: 80px 0;
}

.tools__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.tool-card {
    background-color: #fff;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.07);
}

.tool-card__icon {
    margin-bottom: 20px;
}

.tool-card__icon svg, .tool-card__icon img  {
    width: 48px;
    height: 48px;
    stroke-width: 1.5;
    color: var(--color-primary);
}

.tool-card__icon img {
  margin: 0 auto;
}

.tool-card__title {
    font-family: var(--font-heading);
    font-size: 22px;
    margin-bottom: 10px;
}

.tool-card__description {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
}

/* style.css */

/* 14. CONTACT SECTION */
.contact {
    padding: 80px 0;
    background-color: var(--color-bg);
}

.contact__container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: flex-start;
}

.contact__title {
    font-family: var(--font-heading);
    font-size: 42px;
    margin-bottom: 15px;
}

.contact__description {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 30px;
    color: #555;
}

.contact__details p {
    font-size: 16px;
    margin-bottom: 10px;
}
.contact__details a {
    color: var(--color-text);
    font-weight: 500;
}
.contact__details a:hover {
    color: var(--color-primary);
}


/* Form Styles */
.contact__form-wrapper {
    background-color: #fff;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--color-border);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 16px;
    font-family: var(--font-body);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 167, 142, 0.15);
}

.form-group--checkbox {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
}

.form-group--checkbox input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
}

.form-group--checkbox label {
    font-size: 14px;
    font-weight: 400;
    color: #555;
    margin: 0;
}

.form-group--checkbox a {
    text-decoration: underline;
}

.contact-form__submit {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    margin-top: 10px;
}

/* Form Message Styles */
.form-message {
    padding: 15px;
    margin-top: 20px;
    border-radius: 8px;
    display: none; /* Hidden by default */
    text-align: center;
}

.form-message--success {
    display: block;
    background-color: rgba(0, 167, 142, 0.1);
    color: var(--color-primary-dark);
}

.form-message--error {
    display: block;
    background-color: rgba(255, 0, 0, 0.1);
    color: #cc0000;
}


/* RESPONSIVE STYLES FOR CONTACT */
@media (max-width: 992px) {
    .contact__container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .contact__form-wrapper {
        padding: 20px;
    }
    .contact__title {
        font-size: 32px;
    }
}

/* style.css */

/* 15. COOKIE POP-UP */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--color-footer-bg);
    color: var(--color-footer-text);
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 200;
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
}

.cookie-popup.is-visible {
    transform: translateY(0);
}

.cookie-popup__text {
    text-align: center;
}

.cookie-popup__text a {
    color: #fff;
    text-decoration: underline;
}

.btn--small {
    padding: 8px 20px;
    font-size: 14px;
}

@media (max-width: 768px) {
    .cookie-popup {
        flex-direction: column;
        text-align: center;
    }
}

/* style.css */

/* 16. POLICY PAGES STYLES */
.pages {
    padding: 60px 0;
    background-color: #fff;
}

.pages .container {
    max-width: 800px;
}

.pages h1, .pages h2 {
    font-family: var(--font-heading);
    margin-bottom: 20px;
    color: var(--color-text);
}

.pages h1 {
    font-size: 42px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.pages h2 {
    font-size: 28px;
    margin-top: 40px;
}

.pages p, .pages li {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
}

.pages ul {
    list-style-type: disc;
    padding-left: 20px;
}

.pages a {
    text-decoration: underline;
}

.pages a:hover {
    color: var(--color-primary-dark);
}

.pages strong {
    font-weight: 700;
    color: var(--color-text);
}